{"id":26691362,"url":"https://github.com/itschip/keep-react-hook-form","last_synced_at":"2025-03-26T16:18:28.264Z","repository":{"id":68791079,"uuid":"452816285","full_name":"itschip/keep-react-hook-form","owner":"itschip","description":"A lib to store react-hook-form values in session storage.","archived":false,"fork":false,"pushed_at":"2022-01-27T19:53:01.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T03:15:01.739Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/itschip.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,"dei":null}},"created_at":"2022-01-27T19:27:54.000Z","updated_at":"2022-01-27T20:15:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"fadf49ee-6cab-405b-91e4-4c769639e1ea","html_url":"https://github.com/itschip/keep-react-hook-form","commit_stats":null,"previous_names":["derletzteritter/keep-react-hook-form","itschip/keep-react-hook-form"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itschip%2Fkeep-react-hook-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itschip%2Fkeep-react-hook-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itschip%2Fkeep-react-hook-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itschip%2Fkeep-react-hook-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itschip","download_url":"https://codeload.github.com/itschip/keep-react-hook-form/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245689483,"owners_count":20656417,"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":[],"created_at":"2025-03-26T16:18:27.736Z","updated_at":"2025-03-26T16:18:28.257Z","avatar_url":"https://github.com/itschip.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"A lib to store `react-hook-form` values in session storage.\n\n```tsx\ntype FormData = {\n\tusername: string;\n\temail: string;\n}\n\nfunction App() {\n\tconst { register, watch, setValue } = useForm\u003cFormData\u003e({ defaultValues: { email: '', username: '' } });\n\t\n\tusePersistForm\u003cFormData\u003e({\n\t\tformName: \"login\",\n\t\twatch,\n\t\tsetValue,\n\t\tshouldValidate: true,\n\t\tshouldDirty: true,\n\t\tonRestored: (values) =\u003e {\n\t\t\tconsole.log(values)\n\t\t}\n\t})\n\t\n\treturn (\n\t\t\u003cdiv className=\"App\"\u003e\n\t\t\t\u003cinput {...register('username')} /\u003e\n\t\t\t\u003cinput {...register('email')} /\u003e\n\t\t\u003c/div\u003e\n\t);\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitschip%2Fkeep-react-hook-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitschip%2Fkeep-react-hook-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitschip%2Fkeep-react-hook-form/lists"}