Is there a way to partially use a store injected by a Provider? #2676
-
As the title suggests. For example, consider the following situation: Atom A is used within a Provider and store to ensure that it is automatically initialized whenever entering the specific page and is only accessible within that page. The issue arises because the store injected by the Provider does not include the global atom, making the global state inaccessible within this Provider. Is there a usage method I am unaware of? If not, I am considering making a PR. Let me know if you need any more assistance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Navigating away from the page should clean up the state of atom A, right? If yes, you can either
|
Beta Was this translation helpful? Give feedback.
Navigating away from the page should clean up the state of atom A, right? If yes, you can either