Exposing library functionality as a hook (can no longer use useObserver) #2887
-
Hi all, I use MobX to write various features for my company app, but not everyone here necessarily uses MobX. Previously I have created custom hooks which expose some of my library's features for use by other devs and under the hood I have used In the latest version of MobX this function is now deprecated. I ideally want to avoid having to ask other devs to wrap their components in Is there a way for me to access useObserver without getting the deprectated message maybe? Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Please see the discussion here #2566 (comment) |
Beta Was this translation helpful? Give feedback.
-
This has been answered here #2566 (reply in thread) with an example utility hook. |
Beta Was this translation helpful? Give feedback.
This has been answered here #2566 (reply in thread) with an example utility hook.