`withFieldGroup` array handling with nested
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 38/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Pouca atividade
- Stack de tecnologia
- react, typescript
- Domínio
- frontend
Direção de pesquisa
Comece com a reprodução vinculada do CodeSandbox, concentrando-se em withFieldGroup e no componente SingleFieldWithReorder ao mover os valores de arrays aninhados para cima e para baixo. Rastreie por que os valores aninhados renderizados divergem do mapeamento do array pai e verifique se fields e form devem ser expostos para a função de renderização. Considera-se concluído quando o grupo aninhado permanece sincronizado e o comportamento das render props é resolvido ou documentado.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Describe the bug
When combining the withFieldGroup for a complex array handling, the nested array element seems out of sync with the actual value of the group.
I've just tested while passing the root form to the SingleFieldWithReorder and the nested elements keep being out of sync (regarding the json value displayed)
Also, this is unrelated but when looking at the extra props of the render function, it seems to pass the fields and the form. Idk if this is expected or if the props must be sanitized when rendering to remove theses values before passing the props to the render method. (They are undocumented and not typed)
Your minimal, reproducible example
https://codesandbox.io/p/devbox/misty-monad-8t29lx?workspaceId=ws_PkVpfRWHUp5vMscgD59gVj
Steps to reproduce
- Try to move the value with the
move down|move upbuttons. - See that the values from the base array mapping are correct, but the values rendered in the element aren't.
Expected behavior
I think the nested group value should remain sync with the array mapping from the parent group
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
- Browser: Tested on chrome 138.0.7204.183 (Official Build) (64-bit)
TanStack Form adapter
react-form
TanStack Form version
v1.15.1
TypeScript version
No response
Additional context
No response
- Linguagem predominante
- TypeScript
- Estrelas
- 6.8k
- Forks
- 711
- Merge médio
- 1d 6h
- PRs com merge (30d)
- 12
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
-
Submit listener exceptions leave isSubmitting stuck trueTalvez já em andamento @henricop assumiu há 1 dia. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
handleSubmit calls onSubmit again while a submit is still pending (since 1.33.1)Talvez já em andamento @twotnguyen assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
[v2] FieldWithValue<T> erases field.name to any instead of stringTalvez já em andamento @Priyeshshrivastav assumiu há 3 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
TanStack/form#2465 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
`isDefaultValue` is wrong when a field-level `defaultValue` is `null`Talvez já em andamento @fenet-as assumiu há 26 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á 31 dias. Aberta
Dificuldade 2/5 1-2 dias Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
Todas as issues de TanStack/form
Issues semelhantes
-
area:cards enhancement ready-for-agent
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
fil-donadoni/tolaria#8883 ·
Mantenedores costumam responder em até 1 dia
-
xsd:integer cast from a string rejects negative numbers, a leading + and surrounding whitespaceAbertabug 🐛
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
comunica/comunica#1960 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Waiting for: Product Owner
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
getsentry/sentry-javascript#26203 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
bytedance/flowgram.ai#1235 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
devswha/herdr-web-ui#3325 ·