when debouceAsync is present, isValidating should still be true in time between sync finishing, and async starting
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
- #1971 de @tt-a1i — fechado sem integrar
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- react, typescript
- Domínio
- frontend
Direção de pesquisa
Comece pela reprodução vinculada do StackBlitz em src/index.tsx e rastreie o fluxo de validação de onChange/onChangeAsync, incluindo o debounce de 500 ms. Confirme a transição de estado entre a conclusão da validação síncrona e o início da validação assíncrona; considera-se concluído quando isValidating permanece true durante todo esse intervalo ou quando o estado de substituição é exposto de forma consistente.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Describe the bug
Im trying to make a form, where part of the validation is done on server, so im using both, onChange and onChangeAsync, the later with onChangeAsyncDemounceMs set to 500.
I noticed that in the time frame between onChange finishing and OnChangeAsync starting I do not have a way to disable submit button, as isValidating is set to true after onChange
Your minimal, reproducible example
https://stackblitz.com/edit/tanstack-form-db1bcvv7?file=src%2Findex.tsx
Steps to reproduce
- fill firstname with 'er" - button is dissabled
- fill firstname with 'error'- button is enabled (onChange passed)
and after 500 s (the onChangeAsync fires) the button is disabled again
Expected behavior
When any debouceMs is set, the isValidating should still stay as true, or we should get additional property which would represent that period of time.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
MacOs, chrome
TanStack Form adapter
react-form
TanStack Form version
1.23.7, 1.23.8
TypeScript version
No response
Additional context
No response
- Linguagem predominante
- TypeScript
- Estrelas
- 6.8k
- Forks
- 717
- Merge médio
- 5d 22h
- 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
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
Submit listener exceptions leave isSubmitting stuck trueTalvez já em andamento @henricop assumiu há 14 dias. 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 há 14 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
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á 40 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á 44 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
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
lingdojo/kana-dojo#34449 · 1 comentário · 5 reações ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
drizzle-team/drizzle-orm#6726 ·
Mantenedores costumam responder em até 2 dias
-
bug platform-desktop platform-windows
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Termix-SSH/Termix#1951 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Grok provider voice list shows 5 of xAI's 28 built-in voicesTalvez já em andamento @hkjarral assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
hkjarral/AVA-AI-Voice-Agent-for-Asterisk#883 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100