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

Maximum call stack size exceeded when initialValue is an array/object

Open
#67 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
469
Forks
19
PR merge metrics
No merged PRs in 30d

Description

### Are you submitting a **bug report** or a **feature request**?
bug report

### What is the current behavior?
Since version `1.0.1` it seems, that values initialized with an empty array leads to a `Maximum call stack size exceeded` error.

### What is the expected behavior?
That I can operate on this array like in version `1.0.0-alpha.1`.

### Sandbox Link
https://codesandbox.io/s/react-final-form-hooks-simple-example-82tcn?fontsize=14&hidenavigation=1&theme=dark&file=/src/index.js

You can switch between the versions, which should result in the described behaviour. Could it be, that this use case handling arrays and objects should be handled differently now?

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.