Easy save state management using browser localStorage or sessionStorage and React Hooks.
MIT License
Published by colinhemphill about 1 year ago
Published by colinhemphill about 3 years ago
version
can now be a string in addition to a number
Published by colinhemphill about 3 years ago
version
param which allows you to invalidate the stored values who were using a different versionhusky
which uses git hooks instead of config in the package.json
filepeerDependencies
eslint-plugin-react-hooks
and updated the plugin bassed on recommendations
useEffect
and useState
within the hook are not conditional based on isServerSide()
window.onstorage
function to window.addEventListener
useEffect
hook that removes the listener on unmountPublished by colinhemphill about 4 years ago
onstorage
event handler to sync state changes between browser tabsPublished by colinhemphill about 4 years ago
useLocalStorage
and useSessionStorage