[v2] Make schema issues configurable for form-level report
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 65/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- react, typescript
調査の方向性
Look at the root schema validation logic in the TanStack Form v2 codebase, likely in the core validation or state management files. The issue mentions copying field issues into form.state.errors; find where this copying occurs and add a configuration option to control it. Test by running the provided CodeSandbox example and verifying that form.state.errors no longer contains field errors when the option is set.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
In the current v2, root schema validators copy all field issues into form.state.errors in addition having them in field.errors
Your minimal, reproducible example
https://codesandbox.io/p/devbox/nostalgic-firefly-ng66xx
Steps to reproduce
- Attach a Standard Schema to root
validators - Trigger validation with an invalid field value
- Observe
form.state.errorsreceives a copy of the field error issue alongside the form error
Expected behavior
This issue is best solved by having a configurable option for this behavior, so you are able to access form errors without getting the field errors
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
All
TanStack Form adapter
react-form
TanStack Form version
v2.0.0-alpha.2
TypeScript version
No response
Additional context
No response
- 主要言語
- TypeScript
- スター
- 6.8k
- フォーク
- 705
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TanStack/form のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
[v2] FieldWithValue<T> erases field.name to any instead of string対応中かも @Priyeshshrivastav が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
TanStack/form#2465 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
`isDefaultValue` is wrong when a field-level `defaultValue` is `null`対応中かも @fenet-as が 25 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
TanStack/form#2427 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Async validator doesn't re-trigger `isValidating` after first failed validation対応中かも @drewsephski が 29 日前に担当しました。 オープン
難易度 2/5 1〜2日 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
[v2 alpha] devtools are always light mode対応中かも @dikshit-n が 63 日前に担当しました。 オープンarea: runtime scope: devtools type: bug v2
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
🐛 bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
LibreChat-AI/LibreChat#17875 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
category:helper tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
LanternOps/breeze#11285 ·
メンテナーはふだん 1 日以内に返信
-
area: core area: docs good first issue help wanted lane: free-agent priority: P3 roadmap size: XS type: task
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
arminazimi/seaworthy#701 ·
メンテナーはふだん 1 日以内に返信