Callback is called on every render
thoughtspile opened this issue · 1 comments
thoughtspile commented
- Actual behavior: callback is called on every render by default
- Expected behavior: callback is only called after state change
- repro: https://codesandbox.io/s/optimistic-wilson-550x2?file=/src/App.js
Also reproducible in useStateWithCallbackInstant