Tanstack form + React flow #9483
Replies: 1 comment
-
whoops, wrong repo 🙈 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a use case where we are trying to use React flow as the basis of some of our app forms. I am exploring if Tanstack can power our forms, since I like the API. I would essentially need a parent form, where each node is rendering a part of the parent form. However, not being able to pass
appForm
as a prop and having to usewithForm
is rather limiting. I'm sure there is good reason for that but I'm wondering if there's anything that can be done.Some code to make this more concrete (abbreviated, not a complete example):
The issue is of course that the type of
WeatherNode
is not what theReactFlow
component is expecting. Furthermore,WeatherNode
needs to be given aform
prop on render. Using another form library, I would pass the form object intodata
ingetInitialData
and then the subcomponent would be able to use that form object.I understand you can't make your library work with all other libraries out there. Just curious if I'm missing something, since I'm still relatively new to Tanstack forms, or if Tanstack really can't support this use case.
Beta Was this translation helpful? Give feedback.
All reactions