TanStackT
TanStack7mo ago
10 replies
skinny-azure

Prop Drilling Necessary?

Hi folks. I'm looking into taking on a pretty large migration Tanstack Form from react-hook-form because we've realized how horrible of a library it is. Many footguns, implementation traps, etc, etc. react-hook-form embraces global hooks quite a bit, and to make the migration a bit simpler I was hoping to emulate that a bit in Tanstack form, but I've noticed the types are basically impossible to work with.

It seems like this is by design, and the API forces you to prop drill the form prop anywhere you need it via the withFormhelper.

Basically, I'd like to confirm this suspision? Is it unreasonable to use this library if I'm planning on storing the form in context?
Was this page helpful?