when debouceAsync is present, isValidating should still be true in time between sync finishing, and async starting
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
- #1971 來自 @tt-a1i —— 已關閉,未合併
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 45/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- react, typescript
- 領域
- frontend
研究方向
從 src/index.tsx 中連結的 StackBlitz reproduction 開始,追蹤 onChange/onChangeAsync 的驗證流程,包括 500 ms 的 debounce。確認同步驗證完成與非同步驗證開始之間的狀態轉換;完成的標準是 isValidating 在整個時間區間內保持為 true,或替代狀態被一致地公開。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- TypeScript
- 星號
- 6.8k
- 分支
- 717
- 平均合併
- 5 天 22 小時
- 30 天內合併 PR
- 14
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
TanStack/form 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 88/100
維護者通常 1 天內回覆
-
Submit listener exceptions leave isSubmitting stuck true可能已有人在做 @henricop 於 14 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
handleSubmit calls onSubmit again while a submit is still pending (since 1.33.1)可能已有人在做 @twotnguyen 於 14 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
`isDefaultValue` is wrong when a field-level `defaultValue` is `null`可能已有人在做 @fenet-as 於 40 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
Async validator doesn't re-trigger `isValidating` after first failed validation可能已有人在做 @drewsephski 於 44 天前認領。 未關閉
難度 2/5 1-2 天 新手友好度 72/100
維護者通常 1 天內回覆
相似的 Issue
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難度 1/5 1 小時以內 新手友好度 92/100
lingdojo/kana-dojo#34449 · 1 則留言 · 5 個 reaction ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
drizzle-team/drizzle-orm#6726 ·
維護者通常 2 天內回覆
-
bug platform-desktop platform-windows
難度 2/5 1-3 小時 新手友好度 74/100
Termix-SSH/Termix#1951 · 2 則留言 ·
維護者通常 1 天內回覆
-
Grok provider voice list shows 5 of xAI's 28 built-in voices可能已有人在做 @hkjarral 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 80/100
hkjarral/AVA-AI-Voice-Agent-for-Asterisk#883 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100