Form Library Integration

Use the URL as a form draft store by pairing useUrlState with react-hook-form (or formik). Share one module-scoped defaults object between both libraries; hydrate useForm.defaultValues from urlState; push form changes back into setUrl via RHF subscribe() (NOT watch()). Load this skill when a form should round-trip its values through the URL — filter forms, search forms, multi-step wizards with shareable draft links.

asmyshlyaev177 057572f 7.2 KB Updated

File contents

asmyshlyaev177/state-in-url/tree/main/skills/form-library-integration commit 057572f579

Frequently asked questions

npx skillmds@latest add asmyshlyaev177/form-library-integration