🤖 Powerful and type-safe form state management for the web. TS/JS, React Form, Solid Form, Lit Form and Vue Form.
3.47k
stars
316
forks
source link
When you render `Field` conditionally first rendered field will override all next rendered fields #808
Open
vara855 opened 3 days ago
Describe the bug
Use case:
I want to render different
Field
components according to some condition of formstate.values
.It used to work in previous versions (0.21=<).
Your minimal, reproducible example
https://stackblitz.com/edit/vitejs-vite-dvwuju?file=src%2FApp.jsx
Steps to reproduce
Expected behavior
I expected that values
firstField
value will dissapear from state when you uncheck checkbox andsecondField
value will be stored in state.How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Arc browser
TanStack Form adapter
react-form
TanStack Form version
v0.25.1
TypeScript version
Additional context
No response