Replies: 1 comment
-
Check out |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was wondering if there is a recommended approach for accessing stores/atoms that are not in the nearest provider. I'm aware of the general behaviour where components can only access atoms from the nearest provider in the hierarchy.
For example codesandbox, the Child component can access tabAtom but not tabsAtom.
Is there an elegant way without having to pass grandparent store down as prop or using custom context?
Beta Was this translation helpful? Give feedback.
All reactions