Custom Field Meta does not updated until input touched after 1.26.0
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 42/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- react, typescript
- Domínio
- frontend
Direção de pesquisa
Execute a reprodução no StackBlitz usando os arquivos indicados em package.json, src/simple-form.tsx e src/App.tsx. Compare TanStack Form 1.26.0 com 1.27.7, acompanhando a atualização de meta do onMount e o comportamento de renderização de firstName. Está concluído quando firstName estiver oculto inicialmente e for atualizado corretamente ao alterar color sem tocar em firstName.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- TypeScript
- Estrelas
- 6.8k
- Forks
- 705
- Merge médio
- 1d 12h
- PRs com merge (30d)
- 14
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de TanStack/form
-
`isDefaultValue` is wrong when a field-level `defaultValue` is `null`Talvez já em andamento @fenet-as assumiu há 21 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
TanStack/form#2427 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Async validator doesn't re-trigger `isValidating` after first failed validationTalvez já em andamento @drewsephski assumiu há 26 dias. Aberta
Dificuldade 2/5 1-2 dias Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
[v2 alpha] devtools are always light modeTalvez já em andamento @dikshit-n assumiu há 60 dias. Abertaarea: runtime scope: devtools type: bug v2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 1 dia
-
FormGroupApi.getRelatedFields and FieldApi.validate() use unguarded startsWith for group membership, matching unrelated fields with a shared name prefixTalvez já em andamento @HDPark95 assumiu há 79 dias. Abertaarea: runtime scope: core type: bug v1
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
TanStack/form#2337 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
FormApi: onSubmit/onServer error cleared on any non-matching validation cause, not just 'change'Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Abertav1 v2: needs investigation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
Todas as issues de TanStack/form
Issues semelhantes
-
ci-cd desktop size:low telemetry-improvement telemetry-round-1
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
vfarcic/dot-agent-deck#2079 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
Broken links in the docsAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 83/100
Mantenedores costumam responder em até 1 dia
-
status:in-linear
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
n8n-io/n8n#43006 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
🔊 a11y
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
betagouv/mon-entreprise#4726 ·
Mantenedores costumam responder em até 9 dias