[v2] Make schema issues configurable for form-level report
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 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 天 7 小时
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TanStack/form 的其他 Issue
-
[v2] FieldWithValue<T> erases field.name to any instead of string可能已有人在做 @Priyeshshrivastav 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 1 天内回复
-
`isDefaultValue` is wrong when a field-level `defaultValue` is `null`可能已有人在做 @fenet-as 于 24 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 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 天内回复
-
FormGroupApi.getRelatedFields and FieldApi.validate() use unguarded startsWith for group membership, matching unrelated fields with a shared name prefix可能已有人在做 @HDPark95 于 82 天前认领。 未关闭area: runtime scope: core type: bug v1
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
相似的 Issue
-
Navbar avatar and name stay stale after saving profile changes可能已有人在做 @alexechoi 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
marmelab/atomic-crm#416 ·
维护者通常 1 天内回复
-
feature-request
难度 2/5 1-3 小时 新手友好度 66/100
bluesky-social/social-app#12343 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
lucide-icons/lucide#5165 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
marktext/marktext#6033 · 1 条评论 ·
维护者通常 1 天内回复
-
area:desktop bug has repro platform:macos
难度 2/5 1-3 小时 新手友好度 62/100
anthropics/claude-code#107903 ·