react-component / react-component/field-form
FormInstance.setFields等情况下不会触发dependencies
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1k
- Forks
- 286
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 1
Description
问题
以下情况不会触发dependencies更新
setFields(点击更改Name)- 添加新
Field组件(输入name值,创建新的Gender字段,但不会出现Height字段)
Demo
https://codesandbox.io/s/bugdemo-k9jl2m?file=/demo.js
期望
setFields或添加新Field(有默认值时)能够触发denpendencies更新
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with demo.js in the linked CodeSandbox and reproduce the missing dependency updates for setFields and newly added fields with default values. Trace the corresponding dependency handling in the repository, then verify that both cases trigger the expected dependent-field update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100