Releases: blenderskool/react-localstorage-hooks
Releases · blenderskool/react-localstorage-hooks
v1.0.2
Minor patch release that fixes following issues:
useLocalStorageSelector
hook did not trigger re-render when the selected data changed.
This was because the equality check function was getting stale state data that was not up-to-date.
Note: v1.0.1 included this fix, but was published on npm as v1.0.2 because of incorrect package publish
v1.0.0
First release of this project 🎉
This release adds the following hooks and functions to the package:
useLocalStorageState
: creates reactive state variables synced with localStorage.useLocalStorageReducer
: similar touseReducer
but abstracted on top of localStorage.useLocalStorageSelector
: hook to select some data from localStorage that automatically updates when selected data changes.createLocalStorageDispatch
: creates a dispatch method that directly updates localStorage.