This repository has been archived by the owner on Jan 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
State sharing in different RecoilRoot components #414
Labels
Comments
Can you provide more details on why you need to share state between different |
We need to share state between different applications (old project gradually moving to React). There is no way to wrap everything under single RecoilRoot. E.g. with Redux we can pass store instance to redux Provider components so it would be good if that were possible with Recoil as well. |
@drarmstr is this possible yet? |
Is this possible using an observer and passing the state setting function in from within the other recoil root? |
Related to #140? |
Duplicate of #140 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
We have situation where we need to share state between different RecoilRoot components. I have not found a way to do that via API so I assume it is not possible to do that. Maybe it would be possible to add argument allowing passing state's instance to RecoilRoot component?
The text was updated successfully, but these errors were encountered: