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

[BUG] Form decorators should not change from one render to the next as new values will be ignored

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

Description

### Are you submitting a **bug report** or a **feature request**?
Please guys check the code down below in the sandbox. The same decorators but getting an error about `decorators change`.
It is probably a bug. Cause when I `console.log` decorators they're always the same but I'm getting an error: `Form decorators should not change from one render to the next as new values will be ignored `

### What is the current behavior?
Getting an error about decorators change. but they're the same. Check screenshot:
![Zrzut ekranu 2020-04-28 o 12 22 45](https://user-images.githubusercontent.com/27632432/80476683-00f79700-894b-11ea-8633-e91964c8af64.png)

### What is the expected behavior?
Should not throw an error if the decorators are the same.

### Sandbox Link
https://codesandbox.io/s/naughty-panini-ycjd9?file=/src/App.js

### What's your environment?
"react-final-form": "^3.6.3",
"final-form": "^4.8.1",
"final-form-arrays": "^1.0.4",
"final-form-calculate": "^1.2.1",

### Other information

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.