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

react final form decorator loses previous value

Open
#921 2 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

To find out if a field has been changed, you need to compare it with the previous value, but if the state is updated in the component where , then prevValues in decorators is reset to zero
![image](https://user-images.githubusercontent.com/37245038/121006664-d0af3880-c799-11eb-80c5-76c4404b608e.png)

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.