Describe the bug
I am using custom field meta's heavily, for example style={{ display: field.state.meta?.hidden ? 'none' : 'block' }}, for every field I have set of these meta's like dataSource, hidden, disabled, and others...
in example there is two field firstName and color, I have listener.onMount that hide firstName (through field.setMeta()) if color is "red", in v1.26.0 and before it works well, after this version it does not hide until I touch the field firstName
example use v1.26.0, change package version to see the problem
Your minimal, reproducible example
https://stackblitz.com/edit/vitejs-vite-kqn6fekp?file=package.json,src%2Fsimple-form.tsx,src%2FApp.tsx&terminal=dev
Steps to reproduce
- notice in example field
firstName is hidden by default (it is hidden in onMount)
- change the
color to "green" field firstName will appear
- upgrade tanstack-form version to newer version
- after refresh you will notice
firstName now is not hidden
- touch the field
firstName now it will hide
Expected behavior
compare by previous steps I exp expect:
- notice in example field
firstName is hidden by default (it is hidden in onMount)
- change the
color to "green" field firstName will appear
- upgrade tanstack-form version to newer version
- field
firstName should still hidden by default
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
- OS: [linux, windows]
- Browsers: [chrome, vivaldi]
TanStack Form adapter
react-form
TanStack Form version
1.27.7
TypeScript version
5.9.3
Additional context
No response
Describe the bug
I am using custom field meta's heavily, for example
style={{ display: field.state.meta?.hidden ? 'none' : 'block' }}, for every field I have set of these meta's likedataSource,hidden,disabled, and others...in example there is two field
firstNameandcolor, I have listener.onMount that hidefirstName(throughfield.setMeta()) if color is"red", in v1.26.0 and before it works well, after this version it does not hide until I touch the fieldfirstNameexample use v1.26.0, change package version to see the problem
Your minimal, reproducible example
https://stackblitz.com/edit/vitejs-vite-kqn6fekp?file=package.json,src%2Fsimple-form.tsx,src%2FApp.tsx&terminal=dev
Steps to reproduce
firstNameis hidden by default (it is hidden inonMount)colorto"green"fieldfirstNamewill appearfirstNamenow is not hiddenfirstNamenow it will hideExpected behavior
compare by previous steps I exp expect:
firstNameis hidden by default (it is hidden inonMount)colorto"green"fieldfirstNamewill appearfirstNameshould still hidden by defaultHow often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
TanStack Form adapter
react-form
TanStack Form version
1.27.7
TypeScript version
5.9.3
Additional context
No response