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
Avoids duplicate deref calculations in useStoreDependency
See #95
Avoids duplicate deref calculations in `useStoreDependency`. Only
calculate once; use this result to initialize state (if necessary)
and as the next state.
When the value changes, two deref calculations will still run:
1. the initial render/hook call
2. the re-render/hook call triggered by setting the new value in state
0 commit comments