full state management with tanstack form with seperate components
i want to create seperate component and unifed them in form and can i or should use all the states with tanstack form? like is thera a pattern for that? its a very complex form
basically what im trying to achieve is, i want to manage the variations assign accounts every state trough tanstack-form so it can validate with zod


1 Reply
conscious-sapphire•16h ago
well, you have two main patterns you can go for, mostly steered by how submission happens
Variation 1 is that you have segments of fields (like account data), and once all is changed, you save your whole profile which will include that change.
Variation 2 is that you have multiple small forms that each have their own save functionality (so changing profiles, changing data etc.)