You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way or pattern to access React.Context (and subscribe to changes). The problem is Recoil snapshot can't store service objects (object with functions), I had to use React.Context to store service objects and tie them together manually. I couldn't find any docs about a good pattern using Recoil with React.Context.
As the root problem is I can't store service objects/contexts in Recoil. If there is a way or pattern to do this natively in Recoil, it would be an even better solution.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there any way or pattern to access React.Context (and subscribe to changes). The problem is Recoil snapshot can't store service objects (object with functions), I had to use React.Context to store service objects and tie them together manually. I couldn't find any docs about a good pattern using Recoil with React.Context.
As the root problem is I can't store service objects/contexts in Recoil. If there is a way or pattern to do this natively in Recoil, it would be an even better solution.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions