{"_id":"use-storage-state","_rev":"11-3147f0aaf46c8adefe572e37de7dc09e","name":"use-storage-state","dist-tags":{"latest":"7.0.0"},"versions":{"1.0.0":{"name":"use-storage-state","version":"1.0.0","author":{"name":"kibolho"},"license":"MIT","_id":"use-storage-state@1.0.0","maintainers":[{"name":"kibolho","email":"abilio10@gmail.com"}],"dist":{"shasum":"1c95820d153f86a954474a9e0401b7639a49f572","tarball":"https://registry.npmjs.org/use-storage-state/-/use-storage-state-1.0.0.tgz","fileCount":35,"integrity":"sha512-JfClzIGD/ptFjHuB0WVWjceVyUxZeZ9NMMMjec8HCR4uMQuutMau3Gnlz/17SJuZyfWVh6sPJXfZjPu9ZKeTLQ==","signatures":[{"sig":"MEUCIQCxAKl7z9CoRurlW1OU8o3pEliOLXUIGVgEwXFr8MV12gIgVx7/T2O4QbEEg++lMZ219JkfqwEh5alQuWZY47vzkRE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22136,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgV8KWCRA9TVsSAnZWagAAB9kP/1AG1+V+ctZazZhsoEiK\nAxkEZ7kAxGJdj4IK7fI2IoCmtPgZbrVJ5CEKmHjh/MW7dwJ8s8ZWl+4HickY\n35a/04ed7bQa1Nu767anrlqrVXKuX2MWcfMsjAVeCTaJLRy7CAWaQXRIMoUr\nBPSm0WwxQMAKnjAwJOH6OYYV8r9UA+3ihyQKhVKVsyxjpxG+z+/cdiEvlVca\nLtoKO8LKGJoROdZ09rB/NjJ5uoK1CGQ7n5aADy41TtdvTY3dnxcZPodeBzlA\n8Ztoj63QjZ4T7lfRvcXjnnrGrYcT+sokb8rl66LusL8rr8kS79cwuezCyyft\nySNs+ePiM2Ypqfm2pe7KqGgJo6pWlAsDfwiWA/mdVRZhMJurzkwI4yk2C7AZ\nm4WBaMCSXNGQtjPZhRyC9z3X5ouydu6MkzcX8KLny4zy3Ii9C3RC05X3wY58\n6+HAslG7z9b4r/x7rfy3iahO2mZ1D/IYW7U6T5H/x/h9jT8xDiLS1W5AP9SD\nrXUDtIxd0PneAFmbMdVY0W80+4ZoYveAI6q8YADw1UNqyJHiNtIYULndb4cL\n1fR+Mjkovd8AEClTys/m37yAnscBZwP1FDcFnafqeerlwD0KMJU+XWqzLEDb\n0leDqQDwJVJcNBBhqRMpRcyR/93l1oBNIFY0Ar0qDNQ/haRpOUOkseKfq8Wh\nJfxr\r\n=Wo9Q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"dist/index.es.js","engines":{"npm":">=5","node":">=8"},"scripts":{"test":"cross-env CI=1 react-scripts test --env=jsdom","build":"rollup -c","start":"rollup -c -w","deploy":"gh-pages -d example/build","prepare":"yarn run build","predeploy":"cd example && yarn install && yarn run build","test:watch":"react-scripts test --env=jsdom","postPublish":"git push --tags"},"_npmUser":{"name":"kibolho","email":"abilio10@gmail.com"},"repository":{"url":"https://github.com/kibolho/use-storage-state.git","type":"git"},"description":">","directories":{},"jsnext:main":"dist/index.es.js","_hasShrinkwrap":false,"devDependencies":{"faker":"^5.4.0","react":"^16.8.6","rollup":"^1.1.2","gh-pages":"^2.0.1","cross-env":"^5.2.0","typescript":"^3.9.5","@babel/core":"^7.0.0","@types/jest":"^26.0.21","@types/faker":"^5.1.7","@types/react":"^17.0.3","babel-eslint":"^10.0.1","react-scripts":"^3.0.1","@babel/preset-env":"^7.0.0","rollup-plugin-url":"^2.1.0","eslint-plugin-node":"^7.0.1","mock-async-storage":"^2.2.0","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.10.0","rollup-plugin-babel":"^4.3.2","eslint-plugin-import":"^2.13.0","eslint-plugin-promise":"^4.0.0","eslint-config-standard":"^11.0.0","eslint-plugin-standard":"^3.1.0","rollup-plugin-commonjs":"^9.2.0","@rollup/plugin-typescript":"^8.2.0","rollup-plugin-node-resolve":"^4.0.0","eslint-config-standard-react":"^6.0.0","@babel/plugin-external-helpers":"^7.0.0","@babel/plugin-syntax-import-meta":"^7.0.0","rollup-plugin-peer-deps-external":"^2.2.0","@babel/plugin-proposal-decorators":"^7.0.0","@babel/plugin-proposal-json-strings":"^7.0.0","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/plugin-proposal-function-bind":"^7.0.0","@babel/plugin-proposal-function-sent":"^7.0.0","@babel/plugin-proposal-do-expressions":"^7.0.0","@react-native-community/async-storage":"^1.11.0","@babel/plugin-proposal-class-properties":"^7.0.0","@babel/plugin-proposal-numeric-separator":"^7.0.0","@babel/plugin-proposal-optional-chaining":"^7.0.0","@babel/plugin-proposal-pipeline-operator":"^7.0.0","@babel/plugin-proposal-throw-expressions":"^7.0.0","@babel/plugin-proposal-export-default-from":"^7.0.0","@babel/plugin-proposal-export-namespace-from":"^7.0.0","@babel/plugin-proposal-nullish-coalescing-operator":"^7.0.0","@babel/plugin-proposal-logical-assignment-operators":"^7.0.0"},"peerDependencies":{"react":"^16.8.6"},"_npmOperationalInternal":{"tmp":"tmp/use-storage-state_1.0.0_1616364181822_0.5154451122029424","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"use-storage-state","version":"1.0.1","author":{"name":"kibolho"},"license":"MIT","_id":"use-storage-state@1.0.1","maintainers":[{"name":"kibolho","email":"abilio10@gmail.com"}],"dist":{"shasum":"6271716aa188f37dc6f78ac8f7a62bd564557934","tarball":"https://registry.npmjs.org/use-storage-state/-/use-storage-state-1.0.1.tgz","fileCount":35,"integrity":"sha512-kOJjkpGzVmPZ0m4RdRbGgOm+HupG3i8ajjv2gB+Ise7f8NB4pqGv84ARCnuyOqyw4ZBCR6bdvuCRVRED5JX2lA==","signatures":[{"sig":"MEYCIQCgiFf2FiSrG2WfZS3V5G6Qu2ZogG6d1ZFHEE6omp1tFwIhAKxDRFkPeA7KPcqq/nAzFK/i8fot220UO6kWzSan2+lL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22133,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgV8LnCRA9TVsSAnZWagAAuK0P/2+eXTRUxqUpUzCL0dUf\nRa9oYDycuKLrgyrOOnvzzp0nDeryiskY3IfsNrSqFYpQ0x/DoJb1NcEQLYYi\n2IKFb/dSINlJThXoseIMbDFLTKwdzOtX0j9yQ9yxY9arx2eomo2uw2TFSITs\nTRjii4d2Tf50Q1CFKpGRHO519KUcGK+WmmYIe8zjKx9MpILxCgtfpxE0G8Ac\nstfRNGJwpwwD23nC4AxZfEKnWw92+wAkl8hiKfgayKSuFrP1YkBfzGfc3D8J\nuN+D5FhsvmXxA0Nwru1tkvbNz6oDakUK2dLOWwuRWr9WISH/z30CLJCF/90C\nVo8kj+Fjfzb21TRbdoKrm1zsXKgI9TcNEcJpH937c/yQcBmNbOMw7CTt566V\nJnBZ0qPdqI1AJFbZ3w6FBzXuMOTlX3nWqy8kh5bsckNpB/Zn5hh9vvp5LHC3\nhdBziIndvmf9vu2E90MIC0zA2tdAAzts/K4ugo8Lbwt1oBKd4D5UtV6RF8wA\ntvageDXVrS0Hchk+2ohesE8vvnGpFgEStQSh987BM4ctZo2HsWC3iXqUgJFI\n9d0jI7BZALNHgCZhp97BcumDRHJ2s2gvFGnk+zqaG/M+HvRGjsKuKV/4dKck\ng2NN43TZaCEpVx0oO8WaZhruIfxDJjWERWZDHDKveJ17mPimc3ooQ/DSv2XD\nAl3I\r\n=qPmI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","module":"dist/index.es.js","engines":{"npm":">=5","node":">=8"},"scripts":{"test":"cross-env CI=1 react-scripts test --env=jsdom","build":"rollup -c","start":"rollup -c -w","deploy":"gh-pages -d example/build","prepare":"yarn run build","predeploy":"cd example && yarn install && yarn run build","test:watch":"react-scripts test --env=jsdom","postPublish":"git push --tags"},"_npmUser":{"name":"kibolho","email":"abilio10@gmail.com"},"repository":{"url":"https://github.com/kibolho/use-storage-state.git","type":"git"},"description":">","directories":{},"jsnext:main":"dist/index.es.js","_hasShrinkwrap":false,"devDependencies":{"faker":"^5.4.0","react":"^16.8.6","rollup":"^1.1.2","gh-pages":"^2.0.1","cross-env":"^5.2.0","typescript":"^3.9.5","@babel/core":"^7.0.0","@types/jest":"^26.0.21","@types/faker":"^5.1.7","@types/react":"^17.0.3","babel-eslint":"^10.0.1","react-scripts":"^3.0.1","@babel/preset-env":"^7.0.0","rollup-plugin-url":"^2.1.0","eslint-plugin-node":"^7.0.1","mock-async-storage":"^2.2.0","@babel/preset-react":"^7.0.0","eslint-plugin-react":"^7.10.0","rollup-plugin-babel":"^4.3.2","eslint-plugin-import":"^2.13.0","eslint-plugin-promise":"^4.0.0","eslint-config-standard":"^11.0.0","eslint-plugin-standard":"^3.1.0","rollup-plugin-commonjs":"^9.2.0","@rollup/plugin-typescript":"^8.2.0","rollup-plugin-node-resolve":"^4.0.0","eslint-config-standard-react":"^6.0.0","@babel/plugin-external-helpers":"^7.0.0","@babel/plugin-syntax-import-meta":"^7.0.0","rollup-plugin-peer-deps-external":"^2.2.0","@babel/plugin-proposal-decorators":"^7.0.0","@babel/plugin-proposal-json-strings":"^7.0.0","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/plugin-proposal-function-bind":"^7.0.0","@babel/plugin-proposal-function-sent":"^7.0.0","@babel/plugin-proposal-do-expressions":"^7.0.0","@react-native-community/async-storage":"^1.11.0","@babel/plugin-proposal-class-properties":"^7.0.0","@babel/plugin-proposal-numeric-separator":"^7.0.0","@babel/plugin-proposal-optional-chaining":"^7.0.0","@babel/plugin-proposal-pipeline-operator":"^7.0.0","@babel/plugin-proposal-throw-expressions":"^7.0.0","@babel/plugin-proposal-export-default-from":"^7.0.0","@babel/plugin-proposal-export-namespace-from":"^7.0.0","@babel/plugin-proposal-nullish-coalescing-operator":"^7.0.0","@babel/plugin-proposal-logical-assignment-operators":"^7.0.0"},"peerDependencies":{"react":"^16.8.6"},"_npmOperationalInternal":{"tmp":"tmp/use-storage-state_1.0.1_1616364263360_0.25501693195341946","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"use-storage-state","version":"2.0.0","keywords":["react","hook","Storage","localStorage","sessionStorage","persistent","state","useState","hooks","local storage","session storage","store"],"author":{"url":"https://astoilkov.com","name":"Antonio Stoilkov","email":"hello@astoilkov.com"},"license":"MIT","_id":"use-storage-state@2.0.0","maintainers":[{"name":"astoilkov","email":"antonio.stoilkov@gmail.com"},{"name":"kibolho","email":"abilio10@gmail.com"}],"homepage":"https://github.com/astoilkov/use-storage-state","dist":{"shasum":"7cc27d0df3a99d61132e268bdd9ed07c5b484ac5","tarball":"https://registry.npmjs.org/use-storage-state/-/use-storage-state-2.0.0.tgz","fileCount":9,"integrity":"sha512-pffMYrgUwvfe8mwES937RhY2N0oJGGg+yqRAGQbZpP/U7D56m1f+SCirVgbMLmlVu1aHMIf2jx/+oPdO5YNzVw==","signatures":[{"sig":"MEUCIAVwlPdBdbegX/yO1ctYjmUVK+3c795gfkuL11PnSkc/AiEAlQBgH82GhHS1Bz8XnYrr1E6l7hyE6FTD7l+4sNEHA3g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15468},"type":"module","engines":{"node":">=14"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/astoilkov","scripts":{"size":"yarn build && size-limit","test":"yarn build && vitest run --coverage","build":"tsc","release":"yarn build && np","prettier":"prettier --write --config .prettierrc.yaml {*.ts,*.json}"},"_npmUser":{"name":"astoilkov","email":"antonio.stoilkov@gmail.com"},"repository":{"url":"git+https://github.com/astoilkov/use-storage-state.git","type":"git"},"size-limit":[{"name":"import *","path":"index.js","limit":"1.5 kB","brotli":false},{"name":"import *","path":"index.js","limit":"700 B"}],"description":"React hook that you can wire with any Storage compatible API like `localStorage`, `sessionStorage`, or a custom one.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2022 Antonio Stoilkov hello@astoilkov.com https://astoilkov.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","sideEffects":false,"_hasShrinkwrap":false,"devDependencies":{"np":"^7.6.3","jsdom":"^22.1.0","react":"^18.2.0","eslint":"^8.21.0","vitest":"^1.4.0","prettier":"^3.2.5","react-dom":"^18.2.0","superjson":"^2.2.1","size-limit":"^11.1.1","typescript":"^5.4.2","@types/react":"^18.2.67","@types/react-dom":"^18.2.22","@vitest/coverage-v8":"^1.4.0","eslint-plugin-react":"^7.29.4","react-test-renderer":"^18.1.0","eslint-plugin-promise":"^6.0.0","eslint-plugin-unicorn":"^43.0.2","@testing-library/react":"^14.0.0","eslint-config-strictest":"^0.8.1","eslint-formatter-pretty":"^5.0.0","@typescript-eslint/parser":"^7.2.0","confusing-browser-globals":"^1.0.11","eslint-plugin-react-hooks":"^4.5.0","@size-limit/preset-small-lib":"^11.1.1","@typescript-eslint/eslint-plugin":"^7.2.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/use-storage-state_2.0.0_1721035562792_0.4350519837415816","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"use-storage-state","version":"3.0.0","keywords":["react","hook","Storage","localStorage","sessionStorage","persistent","state","useState","hooks","local storage","session storage","store"],"author":{"url":"https://astoilkov.com","name":"Antonio Stoilkov","email":"hello@astoilkov.com"},"license":"MIT","_id":"use-storage-state@3.0.0","maintainers":[{"name":"astoilkov","email":"antonio.stoilkov@gmail.com"}],"homepage":"https://github.com/astoilkov/use-storage-state","dist":{"shasum":"d23e0d09149673671a98baba7f982b9fd1ccdd0b","tarball":"https://registry.npmjs.org/use-storage-state/-/use-storage-state-3.0.0.tgz","fileCount":9,"integrity":"sha512-jg9xkDAMyA8NOrfPeSmrPfBAQBxk8PbLhwl2qwOF5g0m8JngIHr8v8Ig0qDBGzQR7U1s8bGOE/kC6Cic5KfXdw==","signatures":[{"sig":"MEQCIGUm3kMvmWUP3bcLs6FN+xjOV/NcckA7/2pUMRz4BPaFAiBh3SCqz8M/oEfsEWX6q/WJ/p+7Z25EKbWgjNdfW7li/w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15419},"type":"module","engines":{"node":">=14"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/astoilkov","scripts":{"size":"yarn build && size-limit","test":"yarn build && vitest run --coverage","build":"tsc","release":"yarn build && np","prettier":"prettier --write --config .prettierrc.yaml {*.ts,*.json}"},"_npmUser":{"name":"astoilkov","email":"antonio.stoilkov@gmail.com"},"repository":{"url":"git+https://github.com/astoilkov/use-storage-state.git","type":"git"},"size-limit":[{"name":"import *","path":"index.js","limit":"1.5 kB","brotli":false},{"name":"import *","path":"index.js","limit":"700 B"}],"description":"React hook that you can wire with any Storage compatible API like `localStorage`, `sessionStorage`, or a custom one.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2022 Antonio Stoilkov hello@astoilkov.com https://astoilkov.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","sideEffects":false,"_hasShrinkwrap":false,"devDependencies":{"np":"^7.6.3","jsdom":"^22.1.0","react":"^18.2.0","eslint":"^8.21.0","vitest":"^1.4.0","prettier":"^3.2.5","react-dom":"^18.2.0","superjson":"^2.2.1","size-limit":"^11.1.1","typescript":"^5.4.2","@types/react":"^18.2.67","@types/react-dom":"^18.2.22","@vitest/coverage-v8":"^1.4.0","eslint-plugin-react":"^7.29.4","react-test-renderer":"^18.1.0","eslint-plugin-promise":"^6.0.0","eslint-plugin-unicorn":"^43.0.2","@testing-library/react":"^14.0.0","eslint-config-strictest":"^0.8.1","eslint-formatter-pretty":"^5.0.0","@typescript-eslint/parser":"^7.2.0","confusing-browser-globals":"^1.0.11","eslint-plugin-react-hooks":"^4.5.0","@size-limit/preset-small-lib":"^11.1.1","@typescript-eslint/eslint-plugin":"^7.2.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/use-storage-state_3.0.0_1721126452683_0.457322321382057","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"use-storage-state","version":"4.0.0","keywords":["react","hook","Storage","localStorage","sessionStorage","persistent","state","useState","hooks","local storage","session storage","store"],"author":{"url":"https://astoilkov.com","name":"Antonio Stoilkov","email":"hello@astoilkov.com"},"license":"MIT","_id":"use-storage-state@4.0.0","maintainers":[{"name":"astoilkov","email":"antonio.stoilkov@gmail.com"}],"homepage":"https://github.com/astoilkov/use-storage-state","dist":{"shasum":"e3643be6351733b2c13d5668c970b0390aed064c","tarball":"https://registry.npmjs.org/use-storage-state/-/use-storage-state-4.0.0.tgz","fileCount":9,"integrity":"sha512-Q8HgbfnO+xykg12ApSYoLYe6IbMdHg3ZmDSTTJ2LgRR9hIguoyofsMij0Ldg6/Kbd0zkPaHMafUuFT0P139mcw==","signatures":[{"sig":"MEYCIQDxNCQuu6iSEQm8U4Btq47ltO76duCltQat4EKhNSzIIQIhAPhuZNSKmlM+rlzJwzwj3h4mALPLZhM54MvoXFqr0IIE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15658},"type":"module","engines":{"node":">=14"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/astoilkov","scripts":{"size":"yarn build && size-limit","test":"yarn build && vitest run --coverage","build":"tsc","release":"yarn build && np","prettier":"prettier --write --config .prettierrc.yaml {*.ts,*.json}"},"_npmUser":{"name":"astoilkov","email":"antonio.stoilkov@gmail.com"},"repository":{"url":"git+https://github.com/astoilkov/use-storage-state.git","type":"git"},"size-limit":[{"name":"import *","path":"index.js","limit":"1.5 kB","brotli":false},{"name":"import *","path":"index.js","limit":"700 B"}],"description":"React hook that you can wire with any Storage compatible API like `localStorage`, `sessionStorage`, or a custom one.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2022 Antonio Stoilkov hello@astoilkov.com https://astoilkov.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","sideEffects":false,"_hasShrinkwrap":false,"devDependencies":{"np":"^7.6.3","jsdom":"^22.1.0","react":"^18.2.0","eslint":"^8.21.0","vitest":"^1.4.0","prettier":"^3.2.5","react-dom":"^18.2.0","superjson":"^2.2.1","size-limit":"^11.1.1","typescript":"^5.4.2","@types/react":"^18.2.67","@types/react-dom":"^18.2.22","@vitest/coverage-v8":"^1.4.0","eslint-plugin-react":"^7.29.4","react-test-renderer":"^18.1.0","eslint-plugin-promise":"^6.0.0","eslint-plugin-unicorn":"^43.0.2","@testing-library/react":"^14.0.0","eslint-config-strictest":"^0.8.1","eslint-formatter-pretty":"^5.0.0","@typescript-eslint/parser":"^7.2.0","confusing-browser-globals":"^1.0.11","eslint-plugin-react-hooks":"^4.5.0","@size-limit/preset-small-lib":"^11.1.1","@typescript-eslint/eslint-plugin":"^7.2.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/use-storage-state_4.0.0_1723099372088_0.616598987165714","host":"s3://npm-registry-packages"}},"5.0.0":{"name":"use-storage-state","version":"5.0.0","keywords":["react","hook","Storage","localStorage","sessionStorage","persistent","state","useState","hooks","local storage","session storage","store"],"author":{"url":"https://astoilkov.com","name":"Antonio Stoilkov","email":"hello@astoilkov.com"},"license":"MIT","_id":"use-storage-state@5.0.0","maintainers":[{"name":"astoilkov","email":"antonio.stoilkov@gmail.com"}],"homepage":"https://github.com/astoilkov/use-storage-state","dist":{"shasum":"afc0bae2f546fd9db2903aa275aaa59268e77f64","tarball":"https://registry.npmjs.org/use-storage-state/-/use-storage-state-5.0.0.tgz","fileCount":11,"integrity":"sha512-YT1lR2p1mMecj1Cjl9440hZrjhYjRiBMmpoxFWK31s2aDbSmVMnZBXO4qyz5/x4IdWOWjvIQMaDRn2uwqVidQQ==","signatures":[{"sig":"MEUCIQD3pIRkS1ISFVhXXIWtFl+i2DAkCHVZYuTVUnBTKrnR5AIgHrqOdtSgEWv3uU2bmpNWUIb6W6miJlGMNgX0l0X4S/M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16651},"type":"module","engines":{"node":">=14"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/astoilkov","scripts":{"size":"yarn build && size-limit","test":"yarn build && vitest run --coverage","build":"tsc","release":"yarn build && np","prettier":"prettier --write --config .prettierrc.yaml {*.ts,*.json}"},"_npmUser":{"name":"astoilkov","email":"antonio.stoilkov@gmail.com"},"repository":{"url":"git+https://github.com/astoilkov/use-storage-state.git","type":"git"},"size-limit":[{"name":"import *","path":"index.js","limit":"1.7 kB","brotli":false},{"name":"import *","path":"index.js","limit":"750 B"}],"description":"React hook that you can wire with any Storage compatible API like `localStorage`, `sessionStorage`, or a custom one.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2022 Antonio Stoilkov hello@astoilkov.com https://astoilkov.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","sideEffects":false,"_hasShrinkwrap":false,"devDependencies":{"np":"^7.6.3","jsdom":"^22.1.0","react":"^18.2.0","eslint":"^8.21.0","vitest":"^1.4.0","prettier":"^3.2.5","react-dom":"^18.2.0","superjson":"^2.2.1","size-limit":"^11.1.1","typescript":"^5.4.2","@types/react":"^18.2.67","@types/react-dom":"^18.2.22","@vitest/coverage-v8":"^1.4.0","eslint-plugin-react":"^7.29.4","react-test-renderer":"^18.1.0","eslint-plugin-promise":"^6.0.0","eslint-plugin-unicorn":"^43.0.2","@testing-library/react":"^14.0.0","eslint-config-strictest":"^0.8.1","eslint-formatter-pretty":"^5.0.0","@typescript-eslint/parser":"^7.2.0","confusing-browser-globals":"^1.0.11","eslint-plugin-react-hooks":"^4.5.0","@size-limit/preset-small-lib":"^11.1.1","@typescript-eslint/eslint-plugin":"^7.2.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/use-storage-state_5.0.0_1725371159213_0.43411193353480404","host":"s3://npm-registry-packages"}},"6.0.0":{"name":"use-storage-state","version":"6.0.0","keywords":["react","hook","Storage","localStorage","sessionStorage","persistent","state","useState","hooks","local storage","session storage","store"],"author":{"url":"https://astoilkov.com","name":"Antonio Stoilkov","email":"hello@astoilkov.com"},"license":"MIT","_id":"use-storage-state@6.0.0","maintainers":[{"name":"astoilkov","email":"antonio.stoilkov@gmail.com"}],"homepage":"https://github.com/astoilkov/use-storage-state","dist":{"shasum":"553b7bdb19194254251ee797211e9955fe3a04c3","tarball":"https://registry.npmjs.org/use-storage-state/-/use-storage-state-6.0.0.tgz","fileCount":11,"integrity":"sha512-6EU8kVuhnSeayibQGJIGlVrF6bLp8d0/Sud1kOE+SHzcNIyQpcMPXUjITIwFfBV3QmjlGv1HQaQ3BaTz6hvCUA==","signatures":[{"sig":"MEUCIHXbRUiDGSEr+Nzp23XM9x2GKMSC1/PFvbGMBymhI/kWAiEAqRXzyDELq5jHninaEAJuZx/umeXdbWgVDo03//2EelE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18273},"type":"module","engines":{"node":">=14"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/astoilkov","scripts":{"size":"yarn build && size-limit","test":"yarn build && vitest run --coverage","build":"tsc","release":"yarn build && np","test:ui":"yarn build && vitest --ui --coverage --reporter html","prettier":"prettier --write --config .prettierrc.yaml {*.ts,*.json}"},"_npmUser":{"name":"astoilkov","email":"antonio.stoilkov@gmail.com"},"repository":{"url":"git+https://github.com/astoilkov/use-storage-state.git","type":"git"},"size-limit":[{"name":"import *","path":"index.js","limit":"1.9 kB","brotli":false},{"name":"import *","path":"index.js","limit":"800 B"}],"description":"React hook that you can wire with any Storage compatible API like `localStorage`, `sessionStorage`, or a custom one.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2022 Antonio Stoilkov hello@astoilkov.com https://astoilkov.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","sideEffects":false,"_hasShrinkwrap":false,"devDependencies":{"np":"^7.6.3","jsdom":"^22.1.0","react":"^18.2.0","eslint":"^8.21.0","vitest":"^2.0.5","prettier":"^3.2.5","react-dom":"^18.2.0","superjson":"^2.2.1","@vitest/ui":"^2.0.5","size-limit":"^11.1.1","typescript":"^5.4.2","@types/react":"^18.2.67","@types/react-dom":"^18.2.22","@vitest/coverage-v8":"^2.0.5","eslint-plugin-react":"^7.29.4","react-test-renderer":"^18.1.0","eslint-plugin-promise":"^6.0.0","eslint-plugin-unicorn":"^43.0.2","@testing-library/react":"^14.0.0","eslint-config-strictest":"^0.8.1","eslint-formatter-pretty":"^5.0.0","@typescript-eslint/parser":"^7.2.0","confusing-browser-globals":"^1.0.11","eslint-plugin-react-hooks":"^4.5.0","@size-limit/preset-small-lib":"^11.1.1","@typescript-eslint/eslint-plugin":"^7.2.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/use-storage-state_6.0.0_1744706610069_0.3573265587511427","host":"s3://npm-registry-packages-npm-production"}},"7.0.0":{"name":"use-storage-state","version":"7.0.0","description":"React hook that you can wire with any Storage compatible API like `localStorage`, `sessionStorage`, or a custom one.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/astoilkov/use-storage-state.git"},"funding":"https://github.com/sponsors/astoilkov","homepage":"https://github.com/astoilkov/use-storage-state","author":{"name":"Antonio Stoilkov","email":"hello@astoilkov.com","url":"https://astoilkov.com"},"keywords":["react","hook","Storage","localStorage","sessionStorage","persistent","state","useState","hooks","local storage","session storage","store"],"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"scripts":{"build":"tsc","size":"yarn build && size-limit","test":"yarn build && vitest run --coverage","test:ui":"yarn build && vitest --ui --coverage --reporter html","release":"yarn build && np","prettier":"prettier --write {*.ts,*.json}"},"engines":{"node":">=14"},"peerDependencies":{"react":">=18","react-dom":">=18"},"devDependencies":{"@size-limit/preset-small-lib":"^11.1.1","@testing-library/react":"^14.0.0","@types/react":"^18.2.67","@types/react-dom":"^18.2.22","@typescript-eslint/eslint-plugin":"^7.2.0","@typescript-eslint/parser":"^7.2.0","@vitest/coverage-v8":"^2.0.5","@vitest/ui":"^2.0.5","confusing-browser-globals":"^1.0.11","eslint":"^8.21.0","eslint-config-strictest":"^0.8.1","eslint-formatter-pretty":"^5.0.0","eslint-plugin-promise":"^6.0.0","eslint-plugin-react":"^7.29.4","eslint-plugin-react-hooks":"^4.5.0","eslint-plugin-unicorn":"^43.0.2","jsdom":"^22.1.0","np":"^7.6.3","prettier":"^3.2.5","react":"^18.2.0","react-dom":"^18.2.0","react-test-renderer":"^18.1.0","size-limit":"^11.1.1","superjson":"^2.2.1","typescript":"^5.4.2","vitest":"^2.0.5"},"size-limit":[{"name":"import *","path":"index.js","limit":"1.9 kB","brotli":false},{"name":"import *","path":"index.js","limit":"850 B"}],"licenseText":"MIT License\n\nCopyright (c) 2022 Antonio Stoilkov hello@astoilkov.com https://astoilkov.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"use-storage-state@7.0.0","dist":{"shasum":"3611e463f2d19775440712697c7e30d58b4efd02","integrity":"sha512-srUrZLM1JwlagmGo7+SPtqYIlTK1VURcUl3368H+U8F/emQMpVzaqD8xA3VroHHPtjZVYV7t6VXhyiewyCf0Sg==","tarball":"https://registry.npmjs.org/use-storage-state/-/use-storage-state-7.0.0.tgz","fileCount":11,"unpackedSize":18284,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIE76Ub6Fu20GqCNtkakAucxEVm0IZMJwIEn3fs/AeFCXAiEAwm7MAcMHNjaUdr4NDBdT+OI1Vno1IcTf4gRQvrnvbl4="}]},"_npmUser":{"name":"astoilkov","email":"antonio.stoilkov@gmail.com"},"directories":{},"maintainers":[{"name":"astoilkov","email":"antonio.stoilkov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/use-storage-state_7.0.0_1748164364275_0.07510655165347013"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-21T22:03:01.821Z","modified":"2025-05-25T09:12:44.964Z","1.0.0":"2021-03-21T22:03:01.974Z","1.0.1":"2021-03-21T22:04:23.504Z","2.0.0":"2024-07-15T09:26:02.972Z","3.0.0":"2024-07-16T10:40:52.868Z","4.0.0":"2024-08-08T06:42:52.314Z","5.0.0":"2024-09-03T13:45:59.379Z","6.0.0":"2025-04-15T08:43:30.280Z","7.0.0":"2025-05-25T09:12:44.479Z"},"author":{"name":"Antonio Stoilkov","email":"hello@astoilkov.com","url":"https://astoilkov.com"},"license":"MIT","homepage":"https://github.com/astoilkov/use-storage-state","keywords":["react","hook","Storage","localStorage","sessionStorage","persistent","state","useState","hooks","local storage","session storage","store"],"repository":{"type":"git","url":"git+https://github.com/astoilkov/use-storage-state.git"},"description":"React hook that you can wire with any Storage compatible API like `localStorage`, `sessionStorage`, or a custom one.","maintainers":[{"name":"astoilkov","email":"antonio.stoilkov@gmail.com"}],"readme":"# `use-storage-state`\n\n> React hook for any [Storage](https://developer.mozilla.org/en-US/docs/Web/API/Storage) compatible API like `localStorage`, `sessionStorage`, or a custom one.\n\n[![Gzipped Size](https://img.shields.io/bundlephobia/minzip/use-storage-state)](https://bundlephobia.com/result?p=use-storage-state)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/astoilkov/use-storage-state/main.yml?branch=main)](https://github.com/astoilkov/use-storage-state/actions/workflows/main.yml)\n\n## Install\n\n```bash\nnpm install use-storage-state\n```\n\n## Why\n\n- SSR support.\n- Production ready. [Used broadly across Twitch web properties](https://github.com/astoilkov/use-storage-state/issues/1#issuecomment-2344336086).\n- Works with React 19 and React 18 concurrent rendering.\n- Handles the `Window` [`storage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/storage_event) event and updates changes across browser tabs, windows, and iframe's. Disable with `sync: false`.\n- I also actively maintain [`use-local-storage-state`](https://github.com/astoilkov/use-local-storage-state) (400k downloads per month) for the past 4 years.\n- Aiming for high-quality with [my open-source principles](https://astoilkov.com/my-open-source-principles).\n\n## Usage\n\n```typescript\nimport useStorageState from 'use-storage-state'\n\nexport default function Todos() {\n    const [todos, setTodos] = useStorageState('todos', {\n        defaultValue: ['buy avocado', 'do 50 push-ups']\n    })\n}\n```\n\n<details>\n<summary>Todo list example</summary>\n<p></p>\n\n```tsx\nimport React, { useState } from 'react'\nimport useStorageState from 'use-storage-state'\n\nexport default function Todos() {\n    const [todos, setTodos] = useStorageState('todos', {\n        defaultValue: ['buy avocado']\n    })\n    const [query, setQuery] = useState('')\n\n    function onClick() {\n        setQuery('')\n        setTodos([...todos, query])\n    }\n\n    return (\n        <>\n            <input value={query} onChange={e => setQuery(e.target.value)} />\n            <button onClick={onClick}>Create</button>\n            {todos.map(todo => (\n                <div>{todo}</div>\n            ))}\n        </>\n    )\n}\n\n```\n\n</details>\n\n<details>\n<summary id=\"remove-item\">Removing the data from <code>Storage</code> and resetting to the default</summary>\n<p></p>\n\nThe `removeItem()` method will reset the value to its default and will remove the key from the `Storage`. It returns to the same state as when the hook was initially created.\n\n```tsx\nimport useStorageState from 'use-storage-state'\n\nexport default function Todos() {\n    const [todos, setTodos, removeItem] = useStorageState('todos', {\n        defaultValue: ['buy avocado']\n    })\n\n    function onClick() {\n        removeItem()\n    }\n}\n```\n\n</details>\n\n<details>\n<summary>Why my component renders twice?</summary>\n<p></p>\n\nIf you are hydrating your component (for example, if you are using Next.js), your component might re-render twice. This is behavior specific to React and not to this library. It's caused by the `useSyncExternalStore()` hook. There is no workaround.\n\nIf you want to know if you are currently rendering the server value you can use this helper function:\n```ts\nfunction useIsServerRender() {\n  return useSyncExternalStore(() => {\n    return () => {}\n  }, () => false, () => true)\n}\n```\n\n</details>\n\n## API\n\n#### `useStorageState(key: string, options?: StorageStateOptions)`\n\nReturns `[value, setValue, removeItem]` when called. The first two values are the same as `useState()`. The third value calls `Storage.removeItem()` and resets the hook to it's default state.\n\n#### `key`\n\nType: `string`\n\nThe key used when calling `storage.setItem(key)` and `storage.getItem(key)`.\n\n⚠️ Be careful with name conflicts as it is possible to access a property which is already in your storage that was created from another place in the codebase or in an old version of the application.\n\n#### `options.defaultValue`\n\nType: `any`\n\nDefault: `undefined`\n\nThe default value. You can think of it as the same as `useState(defaultValue)`.\n\n#### `options.storage`\n\nType: `\"local\" | \"session\" | Storage | undefined`\n\nDefault: `\"local\"`\n\nYou can set `localStorage`, `sessionStorage`, or other any [`Storage`](https://developer.mozilla.org/en-US/docs/Web/API/Storage) compatible class.\n\n_Note:_ Prefer to use the `\"local\"` and `\"session\"` literals instead of `localStorage` or `sessionStorage` objects directly, as both can throw an error when accessed if user has configured the browser to not store any site data.\n\n```ts\nconst [multiplier, setMultiplier] = useStorageState('multiplier', {\n    storage: \"session\" // default is \"local\"\n})\n```\n\n#### `options.memoryFallback`\n\nType: `boolean`\n\nDefault: `true`\n\nIf you pass `undefined` to the `storage` option or `localStorage` or `sessionStorage` throw an error when accessed (possible when the browser is configured to not store any site data on device), the library uses a memory storage fallback to avoid your app from breaking completely. You can disable this behavior by setting this option to `false`.\n\n#### `options.sync`\n\nType: `boolean`\n\nDefault: `true`\n\nSetting to `false` doesn't subscribe to the [Window storage event](https://developer.mozilla.org/en-US/docs/Web/API/Window/storage_event). If you set to `false`, updates won't be synchronized across tabs, windows and iframes.\n\n#### `options.storeDefault`\n\nType: `boolean`\n\nDefault: `false`\n\nSetting to `true` calls `storage.setItem()` for the default value so the default value is persisted in `Storage` after the first render of the hook.\n\n#### `options.serializer`\n\nType: `{ stringify, parse }`\n\nDefault: `JSON`\n\nJSON does not serialize `Date`, `Regex`, or `BigInt` data.  You can pass in [superjson](https://github.com/blitz-js/superjson) or other `JSON`-compatible serialization library for more advanced serialization.\n\n#### `memoryStorage`\n\nThe library exports a `memoryStorage` object that's used when the `memoryFallback` option is set to `true` (the default).\n\n```ts\nimport { memoryStorage } from 'use-storage-state'\n\nmemoryStorage.getItem(key)\nmemoryStorage.setItem(key, value)\nmemoryStorage.removeItem(key)\n```\n\n## Related\n\n- [`use-local-storage-state`](https://github.com/astoilkov/use-local-storage-state) — Similar to this hook but for `localStorage` only.\n- [`use-session-storage-state`](https://github.com/astoilkov/use-session-storage-state) — Similar to this hook but for `sessionStorage` only.\n- [`use-db`](https://github.com/astoilkov/use-db) — Similar to this hook but for `IndexedDB`.\n- [`local-db-storage`](https://github.com/astoilkov/local-db-storage) — Tiny wrapper around `IndexedDB` that mimics `localStorage` API.","readmeFilename":"readme.md"}