Repository navigation
Rethinking 'withForm': A Case for Better Reusability #1350
|
The requirement to declare
If this is a technical problem, I would prefer to break one of TanStack’s principles and pass the data type as a generic to the component, like this: Here is an example of the usage I would like |
Replies: 2 comments 1 reply
|
I don't find the presented case particularly compelling. You're either looking for In regards to a new generics passing to We will not be moving forward with this proposal |
|
Yep, I'll drop a code example for proper usage here. Just in case anyone else struggles with reading. |
I don't find the presented case particularly compelling. You're either looking for
formComponentsor the PR being made to allow broader usage ofwithFormIn regards to a new generics passing to
withForm, as you mentioned it fundamentally breaks our philosophy requirements and makes usage harder.We will not be moving forward with this proposal