Pular para o conteúdo
Kitbay
Skill

react-hook-form

Apache-2.0Atualizado em 11 de nov. de 2026114.826Estrelas no GitHub

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

O que a skill ensina

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.

O que faz

Não informado na documentação