react-component / react-component/field-form

FormInstance.setFields等情况下不会触发dependencies

Open
#515 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.