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
Our app uses Recoil, but also consumes a library component that also use Recoil. They both use initializeState. The expectation is that we can initialise atoms related to the outer store in the outer RecoilRoot, and atoms related to the inner store in the inner RecoilRoot. I have contrived a reduced example of what we're trying to achieve:
The text was updated successfully, but these errors were encountered:
mildfuzz
changed the title
Nestes RecoilRoot with initialize state has unexpected results
Nested RecoilRoot using initializeState has unexpected results
Jan 15, 2024
Our app uses Recoil, but also consumes a library component that also use Recoil. They both use
initializeState
. The expectation is that we can initialise atoms related to the outer store in the outerRecoilRoot
, and atoms related to the inner store in the innerRecoilRoot
. I have contrived a reduced example of what we're trying to achieve:The expected output of the above is:
The actual result is:
The text was updated successfully, but these errors were encountered: