Custom Field Meta does not updated until input touched after 1.26.0
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- react, typescript
- Área
- frontend
Línea de trabajo
Ejecuta la reproducción de StackBlitz usando los archivos indicados en package.json, src/simple-form.tsx y src/App.tsx. Compara TanStack Form 1.26.0 con 1.27.7, siguiendo la actualización de meta de onMount y el comportamiento de renderizado de firstName. Se considera terminado cuando firstName está oculto inicialmente y se actualiza correctamente al cambiar color sin tocar firstName.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
Steps to reproduce
- notice in example field
firstNameis hidden by default (it is hidden inonMount) - change the
colorto"green"fieldfirstNamewill appear - upgrade tanstack-form version to newer version
- after refresh you will notice
firstNamenow is not hidden - touch the field
firstNamenow it will hide
Expected behavior
compare by previous steps I exp expect:
- notice in example field
firstNameis hidden by default (it is hidden inonMount) - change the
colorto"green"fieldfirstNamewill appear - upgrade tanstack-form version to newer version
- field
firstNameshould 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
- Lenguaje dominante
- TypeScript
- Estrellas
- 6.8k
- Forks
- 705
- Merge medio
- 1 d 12 h
- PR fusionados (30 d)
- 14
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de TanStack/form
-
`isDefaultValue` is wrong when a field-level `defaultValue` is `null`Posiblemente ocupada @fenet-as la tomó hace 22 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
TanStack/form#2427 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Async validator doesn't re-trigger `isValidating` after first failed validationPosiblemente ocupada @drewsephski la tomó hace 26 días. Abierto
Dificultad 2/5 1-2 días Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
[v2 alpha] devtools are always light modePosiblemente ocupada @dikshit-n la tomó hace 60 días. Abiertoarea: runtime scope: devtools type: bug v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
FormGroupApi.getRelatedFields and FieldApi.validate() use unguarded startsWith for group membership, matching unrelated fields with a shared name prefixPosiblemente ocupada @HDPark95 la tomó hace 79 días. Abiertoarea: runtime scope: core type: bug v1
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
TanStack/form#2337 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
FormApi: onSubmit/onServer error cleared on any non-matching validation cause, not just 'change'Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertov1 v2: needs investigation
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
Todos los issues de TanStack/form
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
formbricks/formbricks#9918 ·
Los mantenedores suelen responder en 1 día
-
Chat: Resize question overlayAbiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
thecodacus/pithagoras#364 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
openclimatefix/quartz-frontend#823 ·
Los mantenedores suelen responder en 4 días
-
area:agent-manager community needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
`contacts.create` posts to `/audiences/undefined/contacts` when `audienceId` is undefinedPosiblemente ocupada @RaphaelFakhri la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
resend/resend-node#1176 ·
Los mantenedores suelen responder en 1 día