local-storage
local-storage copied to clipboard
React hook which syncs localStorage[key] with the comp.
Wrong value returns from useLocalStorage. When I'm checking directly against the local storage, this value is registered under a different key. How can I solve this problem? `import { gql,...
with v2.4.4, `ReferenceError: global is not defined` is happened. Check `isBrowser()` on Line:10 so this place is safe to use `window`
It should be possible disable the customEvent currently implemented in this hook. I have a case where i only want the localstorage event to fire in other tabs then the...
When I write ```js const [x, setX] = useLocalStorage("test", ""); useEffect(() => setX("123456789123456789123")); console.log("x =", x); ``` I see `x = 123456789123456800000` after refreshing the page. This is because the...
When component is initialize, data from localStorage is not reading: See your example: https://stackblitz.com/edit/react-vbrkjb?embed=1&file=index.js 
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.13.3 to 1.14.8. Commits 3d81dc3 Release version 1.14.8 of the npm package. 62e546a Drop confidential headers across schemes. 2ede36d Release version 1.14.7 of the npm package. 8b347cb...
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.10.0 to 6.12.6. Release notes Sourced from ajv's releases. v6.12.6 Fix performance issue of "url" format. v6.12.5 Fix uri scheme validation (@ChALkeR). Fix boolean schemas with strictKeywords...
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7. Changelog Sourced from handlebars's changelog. v4.7.7 - February 15th, 2021 fix weird error in integration tests - eb860c0 fix: check prototype property access in...
Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 10.1.0 to 10.4.1. Release notes Sourced from highlight.js's releases. 10.4.1 Security fixes: (fix) Exponential backtracking fixes for: Josh Goebel cpp handlebars gams perl jboss-cli r erlang-repl powershell...
It would be damn cool if this library accepted as config a custom storage, compliant to the [Storage](https://developer.mozilla.org/pt-BR/docs/Web/API/Storage) spec. This would not only cover session storage usage, but also any...