Is there a way to get the type of a form and form state from form options?
I'm trying to create a generic stepper form where certain parts are only visible if other parts are complete or have certain answers. Currently I'm doing this with nested
But I'm not sure how to type
<form.Subscribe> components, but it's pretty ugly. I'm hoping to do something like this:But I'm not sure how to type
Form and FormState. It looks like it's possible by kind of duplicatign the type of createFormHooks, but it ends up with like 9 generics and it's just nasty. I'm wondering if there's a better built-in way to do this (some type that gives the return type of useAppForm given the form options?) or if I'm going about this all wrong and should be taking a different approach.