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
em... I saw your example , you use the setValue like this setValue(val=>newVal), the current version does not support this approach, you can use like this
What is the current behavior?
When the child component unmount
global state
is lost.Steps to reproduce it and if possible a minimal demo of the problem
https://codesandbox.io/s/bug-react-use-create-global-state-9tykc
plus
buttontoggle
buttonplus
buttonWhat is the expected behavior?
The child component should share the same state.
A little about versions:
react-use
: 15.1.1The text was updated successfully, but these errors were encountered: