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
andbjer
changed the title
useUnmountEffect - callback is not update when it changes
useUnmountEffect - callback is not updated when it changes
May 12, 2022
Prior Issues
No prior issues
What is the current behavior?
The callback passed to
useUnmountEffect
is not updated when it changes.Steps to Reproduce
Consider this component. On unmount,
onSave
is never called even if you've changed the value. Reproduction available hereWhat is the expected behavior?
The callback passed to
useUnmountEffect
should be updated whenever the callback changes.Environment Details
@react-hookz/web
version: 13.2.1react
version: 17.0.2react-dom
version: 17.0.2typescript
version: 4.6.3The text was updated successfully, but these errors were encountered: