{"id":13450922,"url":"https://github.com/Tweries/useReducerWithLocalStorage","last_synced_at":"2025-03-23T16:32:39.135Z","repository":{"id":101082138,"uuid":"260084686","full_name":"Tweries/useReducerWithLocalStorage","owner":"Tweries","description":"React hook that adds local storage support to the `useReducer` hook","archived":false,"fork":false,"pushed_at":"2020-05-06T00:39:05.000Z","size":12,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-31T07:15:53.950Z","etag":null,"topics":["hooks","react","usereducer"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tweries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-04-30T01:25:25.000Z","updated_at":"2020-05-06T00:39:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"df6f869d-b1cd-4f52-930c-3dae267838e4","html_url":"https://github.com/Tweries/useReducerWithLocalStorage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tweries%2FuseReducerWithLocalStorage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tweries%2FuseReducerWithLocalStorage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tweries%2FuseReducerWithLocalStorage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tweries%2FuseReducerWithLocalStorage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tweries","download_url":"https://codeload.github.com/Tweries/useReducerWithLocalStorage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221856523,"owners_count":16892457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["hooks","react","usereducer"],"created_at":"2024-07-31T07:00:40.277Z","updated_at":"2024-10-28T16:32:10.846Z","avatar_url":"https://github.com/Tweries.png","language":"JavaScript","readme":"# useReducerWithLocalStorage\n\nReact hook that adds local storage support to the `useReducer` hook\n\n## Install\n\n```bash\nyarn add use-reducer-with-local-storage\n```\n\n## Usage\n\n```js\nconst [state, dispatch] = useReducerWithLocalStorage({\n  initializerArg: emptyState,\n  key: 'REACT_APP_STATE',\n  reducer\n});\n```\n\n## Resources\n\n- [https://gist.github.com/mattiaerre/8dbd2d8efca3f242c7085a9ce82ecbde](https://gist.github.com/mattiaerre/8dbd2d8efca3f242c7085a9ce82ecbde)\n\n- [https://github.com/Tweries/silver-tip/blob/master/src/App.js#L2](https://github.com/Tweries/silver-tip/blob/master/src/App.js#L2)\n\n## Notes\n\n- Special thanks to [Matthew Brooks](https://github.com/mdboop) that was kind enough to review the original Gist and to propose new features.\n","funding_links":[],"categories":["Packages"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTweries%2FuseReducerWithLocalStorage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTweries%2FuseReducerWithLocalStorage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTweries%2FuseReducerWithLocalStorage/lists"}