This repository has been archived by the owner on Jan 1, 2025. It is now read-only.
Replies: 1 comment 2 replies
-
You might be able to use If you really need to share state and there is no common component for establishing a shared RecoiRoot, then you may want to consider Atom Effects for syncing atom state. There is also |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wonder if it's possible to share state between multiple recoil roots not nested but at the same level.
I have tried setting the
override
prop to false but I still get a different value when trying to access the state from the atoms.If you wonder why I just don't use a parent recoil root and have the other roots nested inside is because I am exporting(registering) these two components as separate web components but need to use a single store cause they are kind of dependent on the state of each other.
I would appreciate if someone can help me out since I'm not an expert in recoil but would like to know if it is feasible.
Beta Was this translation helpful? Give feedback.
All reactions