final-form / final-form/react-final-form
subscription ignores props passed into children
- Dominant language
- JavaScript
- Stars
- 7.4k
- Forks
- 497
- PR merge metrics
- No merged PRs in 30d
Description
hello everyone!
I have a form with many fields, but all of these fields are wrappers that uses `` inside.
I am very happy to reduce my code this way, but there is a problem that I do not know how to solve. So I fetch the data from database and insert it into my form.
The only problem is if I use `` in my form, all my field get set correctly BUT the props that I set are ignored, undefined or just take the default initial value. But if I remove the Form-subscription everything works as expected.
To give you a little example:
I have a field that uses react-select and everything works as I want and also this field is a wrapper that combines react-select and the wrapper and looks like this:
``
If I use `` (no subscription), everything works and I see the picked value of the database of the SelectField and the options that I can pick and that also come from the database as well
If I use ``, I only can see the value from the database, but I can't see the selectOptions.
In a `` that only get initial data, and uses the subscription object I want, how can I get multiple data fields in my wrappers, with the fetched data?
Hope someone can help with that :)
Contributor guide
Assessment
This issue has not been assessed yet.