final-form / final-form/react-final-form

Migration of Redux-Form, Field props, action creators and selectors

Open
#744 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.4k
Forks
497
PR merge metrics
No merged PRs in 30d

Description

### submitting a **feature request**

For migration documentation.

### What is the current behavior?

The migration docs do not mention action creators and state selectors.
https://final-form.org/docs/react-final-form/migration/redux-form

### What is the expected behavior?

The whole API should be covered including more sophisticated cases.

- [ ] several `` props have been removed, like `props`, `onChange`, `onBlur`, etc.

- [ ] [`redux-form` Action Creators](https://redux-form.com/8.3.0/docs/api/actioncreators.md/) -> may [`formApi` instance](https://final-form.org/docs/final-form/types/FormApi) could be used to some degree

- [ ] [`redux-form` Selectors](https://redux-form.com/8.3.0/docs/api/selectors.md/) like [`getFormValues`](https://redux-form.com/8.3.0/docs/api/selectors.md/#-code-getformvalues-formname-string-code-returns-code-state-gt-formvalues-object-code-) -> may [`FormState` api](https://final-form.org/docs/final-form/types/FormState) [`values`](https://final-form.org/docs/final-form/types/FormState#values) could help

- [ ] method signature [`validate(value, allValues, props, name)`](https://redux-form.com/8.3.0/docs/api/field.md/#-code-validate-array-lt-function-gt-value-allvalues-props-name-gt-error-code-optional-) changed to [`validate(value, allValues, meta)`](https://final-form.org/docs/react-final-form/types/FieldProps#validate)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.