when debouceAsync is present, isValidating should still be true in time between sync finishing, and async starting
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
- #1971 @tt-a1i による — マージされずにクローズ
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
src/index.tsx にあるリンク先の StackBlitz reproduction から始め、500 ms の debounce を含む onChange/onChangeAsync の検証フローを追跡します。同期検証の完了から非同期検証の開始までの状態遷移を確認します。完了の条件は、その間ずっと 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時間
- マージ済み PR(30日)
- 14
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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
TanStack/form#2427 · コメント 1 件 ·
メンテナーはふだん 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 件 ·
メンテナーはふだん 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