Zum Inhalt springen
Kitbay
Skill

react-hook-form

Apache-2.0Aktualisiert am 11. Nov. 2026114.826GitHub-Sterne

A coding guide kept in the Supabase monorepo for writing forms with React Hook Form in the Studio dashboard code.

Was der Skill vermittelt

A coding guide kept in the Supabase monorepo for writing forms with React Hook Form in the Studio dashboard code. It warns that existing code has many patterns not to copy, and asks that touched fields be upgraded while untouched problems are only reported. It compares the library's ways of reading form values and what each re-renders, sets a standard form built on a zod schema with full default values, and covers loading server data, resetting after a save, keeping inputs controlled, handling empty number fields, using dirty state to enable Save and Cancel, disabling fields and wiring submit with toasts. Four custom lint rules enforce parts of this, with one warning count ratcheted in CI.

Funktionen

In der Dokumentation nicht angegeben