react-component / react-component/field-form
How to get all form values inside a field?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1k
- Forks
- 286
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 1
Description
I have a form1 and a nested form2, in form2 I have a field-B, it need field-A's value? field-A was in form1, how can I get field-A's value inside field-B?
I can achive this by pass the form to form2, then pass to field-B, then call form.getFieldValue(field-A), any better solution? as I saw rc-field-form use react context, it should be achived by context.consumer.....
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 by tracing how form1, nested form2, field-A, and field-B are connected, then inspect the React context usage mentioned in the issue. Compare the existing prop-passing and form.getFieldValue approach with the library's supported subscription or context APIs. Done means establishing and documenting an approved way for field-B to access field-A across nested forms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100