{"id":14987583,"url":"https://github.com/codebayu/use-hydration-zustand","last_synced_at":"2026-01-19T11:32:14.679Z","repository":{"id":210394212,"uuid":"726460996","full_name":"codebayu/use-hydration-zustand","owner":"codebayu","description":" React hook for handle the persist state of zustand","archived":false,"fork":false,"pushed_at":"2024-03-31T17:06:44.000Z","size":19,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-30T09:33:41.886Z","etag":null,"topics":["hydration","zustand","zustand-persist"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@codebayu/use-hydration-zustand","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codebayu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["Bayusetiawan45"]}},"created_at":"2023-12-02T13:20:44.000Z","updated_at":"2024-07-15T10:01:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"1c036030-a5c7-41a8-960d-3d840200c457","html_url":"https://github.com/codebayu/use-hydration-zustand","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.25,"last_synced_commit":"d7cc0f892c2bc343d552e2e7e704abcdeb8d63a6"},"previous_names":["bayusetiawan45/use-hydration-zustand","codebayu/use-hydration-zustand"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/codebayu/use-hydration-zustand","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebayu%2Fuse-hydration-zustand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebayu%2Fuse-hydration-zustand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebayu%2Fuse-hydration-zustand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebayu%2Fuse-hydration-zustand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codebayu","download_url":"https://codeload.github.com/codebayu/use-hydration-zustand/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebayu%2Fuse-hydration-zustand/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28566395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hydration","zustand","zustand-persist"],"created_at":"2024-09-24T14:14:58.159Z","updated_at":"2026-01-19T11:32:14.662Z","avatar_url":"https://github.com/codebayu.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Bayusetiawan45"],"categories":[],"sub_categories":[],"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) =\u003e ({\n  // Your store definition here\n}));\n\nfunction MyComponent() {\n  // Use the useHydrationZustand hook\n  const isHydrated = useHydrationZustand(useStore);\n\n  return (\n    \u003cdiv\u003e\n      {isHydrated ? (\n        items.map((item) =\u003e \u003cCard {...item} key={item.id} /\u003e)\n      ) : (\n        \u003cLoading /\u003e\n      )}\n    \u003c/div\u003e\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\u003cany\u003e)`: 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebayu%2Fuse-hydration-zustand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebayu%2Fuse-hydration-zustand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebayu%2Fuse-hydration-zustand/lists"}