{"_id":"@codebayu/use-hydration-zustand","_rev":"4-f44d0074f422a84da32a7515f37bc1f2","name":"@codebayu/use-hydration-zustand","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@codebayu/use-hydration-zustand","version":"1.0.0","description":"React hook for handle the persist state of zustand","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/Bayusetiawan45/use-hydration-zustand.git"},"keywords":["hydrate","zustand","react","hook","react hook"],"author":{"name":"bayu setiawan"},"license":"MIT","bugs":{"url":"https://github.com/Bayusetiawan45/use-hydration-zustand/issues"},"homepage":"https://github.com/Bayusetiawan45/use-hydration-zustand#readme","devDependencies":{"@types/react":"^18.2.40","react":"^18.2.0","typescript":"^5.3.2","zustand":"^4.4.7"},"gitHead":"a85c72ba9dd8924d3131df3fb0e4266f8fb448ba","_id":"@codebayu/use-hydration-zustand@1.0.0","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-ORXvMYU4qeJKCT7WmqGd476KMfXkHhmHrIscbr/x7UpWKwVrzR/unMjlil00gWx1c7/1+WbLl1y3AzD6HqbHgg==","shasum":"ce28662b822fa5bece7342a241b330bae9ad2919","tarball":"https://registry.npmjs.org/@codebayu/use-hydration-zustand/-/use-hydration-zustand-1.0.0.tgz","fileCount":7,"unpackedSize":4780,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCe2P2HMfQ1oG5FzxulV68HnnwTFBjDFTQ5/NMPHzaqRwIhAMRageZ9c869wniFU3dpzWbb9Wh3OEJbvVdSwe/+wQYW"}]},"_npmUser":{"name":"bayu-setiawan","email":"bayusetiawanipb@gmail.com"},"directories":{},"maintainers":[{"name":"bayu-setiawan","email":"bayusetiawanipb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-hydration-zustand_1.0.0_1701524724173_0.5441243721233946"},"_hasShrinkwrap":false},"1.0.1":{"name":"@codebayu/use-hydration-zustand","version":"1.0.1","description":"React hook for handle the persist state of zustand","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/Bayusetiawan45/use-hydration-zustand.git"},"keywords":["hydrate","zustand","react","hook","react hook"],"author":{"name":"bayu setiawan"},"license":"MIT","bugs":{"url":"https://github.com/Bayusetiawan45/use-hydration-zustand/issues"},"homepage":"https://github.com/Bayusetiawan45/use-hydration-zustand#readme","peerDependencies":{"react":">=16.8.0"},"devDependencies":{"@types/react":"^18.2.40","react":"^18.2.0","typescript":"^5.3.2","zustand":"^4.4.7"},"gitHead":"ce106efb01210189b3e0b6c9b14003b08fa5ee48","_id":"@codebayu/use-hydration-zustand@1.0.1","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-wxdBah/UT0cbvYQCNtulPbmsSXimL07ACYVLauJ6Xlhmv2TVSWab5Ue5AxuEf589be2na9IXvon2P3J5sYbePA==","shasum":"723d66d9f654af3c6bdf93cb3e2dec3e1df7e585","tarball":"https://registry.npmjs.org/@codebayu/use-hydration-zustand/-/use-hydration-zustand-1.0.1.tgz","fileCount":7,"unpackedSize":4833,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCW2knW0eGxT8F03U0E2jyUsL6r4OkgfmYstkNmRnGmGAIgIMwKmNhQ/KlZIBlq9pUVo66gtrpqyM664pXgeDKl1pQ="}]},"_npmUser":{"name":"bayu-setiawan","email":"bayusetiawanipb@gmail.com"},"directories":{},"maintainers":[{"name":"bayu-setiawan","email":"bayusetiawanipb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-hydration-zustand_1.0.1_1701525237392_0.6620769799507358"},"_hasShrinkwrap":false},"1.0.2":{"name":"@codebayu/use-hydration-zustand","version":"1.0.2","description":"React hook for handle the persist state of zustand","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/Bayusetiawan45/use-hydration-zustand.git"},"keywords":["hydrate","zustand","react","hook","react hook"],"author":{"name":"bayu setiawan"},"license":"MIT","bugs":{"url":"https://github.com/Bayusetiawan45/use-hydration-zustand/issues"},"homepage":"https://github.com/Bayusetiawan45/use-hydration-zustand#readme","peerDependencies":{"react":">=16.8.0"},"devDependencies":{"@types/react":"^18.2.40","react":"^18.2.0","typescript":"^5.3.2","zustand":"^4.4.7"},"gitHead":"572ed16b1ea05b0f62c4cf2f7456ece382509877","_id":"@codebayu/use-hydration-zustand@1.0.2","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-V+GzQwti7G45yImaOqPxEd5+Ltd2iS92lfLDD4WK6T9m41Tg6welzrBYEWxxK+BMR88tsM6l3SHM3wMl8fcElA==","shasum":"c2e1c9947bb9875bfd5b34c15f6f7e75b70974c0","tarball":"https://registry.npmjs.org/@codebayu/use-hydration-zustand/-/use-hydration-zustand-1.0.2.tgz","fileCount":7,"unpackedSize":4860,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDM8YG7Nah+Rn4S/EHWF5g2f8IxGO10OIzbsEjoi0wrOwIgFF3lwj0HPr7SiqABS+9OnK3VBKMAW1JxoayAP0Kbw3o="}]},"_npmUser":{"name":"bayu-setiawan","email":"bayusetiawanipb@gmail.com"},"directories":{},"maintainers":[{"name":"bayu-setiawan","email":"bayusetiawanipb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-hydration-zustand_1.0.2_1701528803976_0.295312995119402"},"_hasShrinkwrap":false},"1.0.3":{"name":"@codebayu/use-hydration-zustand","version":"1.0.3","description":"React hook for handle the persist state of zustand","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/Bayusetiawan45/use-hydration-zustand.git"},"keywords":["hydrate","zustand","react","hook","react hook"],"author":{"name":"bayu setiawan"},"license":"MIT","bugs":{"url":"https://github.com/Bayusetiawan45/use-hydration-zustand/issues"},"homepage":"https://github.com/Bayusetiawan45/use-hydration-zustand#readme","peerDependencies":{"react":">=16.8.0"},"devDependencies":{"@types/react":"^18.2.40","react":"^18.2.0","typescript":"^5.3.2","zustand":"^4.4.7"},"gitHead":"759fb4d0f8c4e07d6dc5d5c9aa3807d8a01b5790","_id":"@codebayu/use-hydration-zustand@1.0.3","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-AifpnhI1awIFrEDgKRooBcY9efza7Bx4/RNWRcmU3Ff3aUpg+pLM0nYWC4wM0CUEjr6LiVE2EsdNbJkxYlpRng==","shasum":"2028f688d2cfbc10e17788da783331ad873d258f","tarball":"https://registry.npmjs.org/@codebayu/use-hydration-zustand/-/use-hydration-zustand-1.0.3.tgz","fileCount":8,"unpackedSize":4924,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAdIh4v0onxenqax+zikQGv/f/XB+HDEBwgQhS4YycUTAiB4UnZ0eXos5V8b4DqzaN78oRnumwa87iWI1zHvjeLvRw=="}]},"_npmUser":{"name":"bayu-setiawan","email":"bayusetiawanipb@gmail.com"},"directories":{},"maintainers":[{"name":"bayu-setiawan","email":"bayusetiawanipb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-hydration-zustand_1.0.3_1705276277895_0.16350968753265183"},"_hasShrinkwrap":false},"1.0.4":{"name":"@codebayu/use-hydration-zustand","version":"1.0.4","description":"React hook for handle the persist state of zustand","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/Bayusetiawan45/use-hydration-zustand.git"},"keywords":["hydrate","zustand","react","hook","react hook"],"author":{"name":"bayu setiawan"},"license":"MIT","bugs":{"url":"https://github.com/Bayusetiawan45/use-hydration-zustand/issues"},"homepage":"https://github.com/Bayusetiawan45/use-hydration-zustand#readme","peerDependencies":{"react":">=16.8.0"},"devDependencies":{"@types/react":"^18.2.40","react":"^18.2.0","typescript":"^5.3.2","zustand":"^4.4.7"},"gitHead":"e226f590e08886e740948115adaf97a14233312f","_id":"@codebayu/use-hydration-zustand@1.0.4","_nodeVersion":"20.4.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-d1Qw9jWRTxS/XStStsPbJVXA137syKNAr866aPvXsPzo8LVu/R/vGlRgzu/3F6tHd5vh59iE1hiN6hU7I9qd4Q==","shasum":"51d7cb61043b3a2886f88fb99396c28e7b4631ac","tarball":"https://registry.npmjs.org/@codebayu/use-hydration-zustand/-/use-hydration-zustand-1.0.4.tgz","fileCount":9,"unpackedSize":5510,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE4bzCNERdYfoyKggd1aBUU0tk7Og/Z7USXlV9U1djFGAiEAsoIWxfp0jLA6EBJ/ADXnz8+GAjqEHWmIC94f1E/Rmvc="}]},"_npmUser":{"name":"bayu-setiawan","email":"bayusetiawanipb@gmail.com"},"directories":{},"maintainers":[{"name":"bayu-setiawan","email":"bayusetiawanipb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-hydration-zustand_1.0.4_1705970974348_0.5447345858133472"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-02T13:45:24.102Z","1.0.0":"2023-12-02T13:45:24.417Z","modified":"2024-01-23T00:49:34.669Z","1.0.1":"2023-12-02T13:53:57.590Z","1.0.2":"2023-12-02T14:53:24.149Z","1.0.3":"2024-01-14T23:51:18.057Z","1.0.4":"2024-01-23T00:49:34.502Z"},"maintainers":[{"name":"bayu-setiawan","email":"bayusetiawanipb@gmail.com"}],"description":"React hook for handle the persist state of zustand","homepage":"https://github.com/Bayusetiawan45/use-hydration-zustand#readme","keywords":["hydrate","zustand","react","hook","react hook"],"repository":{"type":"git","url":"git+https://github.com/Bayusetiawan45/use-hydration-zustand.git"},"author":{"name":"bayu setiawan"},"bugs":{"url":"https://github.com/Bayusetiawan45/use-hydration-zustand/issues"},"license":"MIT","readme":"# @codebayu/use-hydration-zustand\n\nA React Custom Hook for Zustand state management library to simplify hydration handling.\n\n## Installation\n\n```bash\n# npm\nnpm install @codebayu/use-hydration-zustand\n\n# yarn\nyarn add @codebayu/use-hydration-zustand\n```\n\n## Usage\n\n```tsx\nimport { useHydrationZustand } from '@codebayu/use-hydration-zustand';\nimport create from 'zustand';\n\n// Your Zustand store\nconst useStore = create((set) => ({\n  // Your store definition here\n}));\n\nfunction MyComponent() {\n  // Use the useHydrationZustand hook\n  const isHydrated = useHydrationZustand(useStore);\n\n  return (\n    <div>\n      {isHydrated ? (\n        items.map((item) => <Card {...item} key={item.id} />)\n      ) : (\n        <Loading />\n      )}\n    </div>\n  );\n}\n\nexport default MyComponent;\n```\n\n## API\n\n`useHydrationZustand(store)`\nA hook for Zustand that simplifies hydration handling.\n\nParameters\n\n- `store (UseBoundStore<any>)`: The Zustand store.\n\nReturns\n\n- `boolean`: true if the store has finished hydration, false otherwise.\n\n## License\n\nThis project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details.\n","readmeFilename":"README.md"}