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

passing defaultValue into the React-Select Field causes infinite loop

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

Description

### Current behavior

Just make the `react-select` adapter and try passing `defaultValue` to the `Field` – [example](https://codesandbox.io/s/react-final-form-react-select-lhfyf).

### What is the expected behavior?

No infinite loops.

### Sandbox Link

[https://codesandbox.io/s/react-final-form-react-select-lhfyf](https://codesandbox.io/s/react-final-form-react-select-lhfyf)

### What's your environment?

- `react-final-form`: 6.3.0
- `final-form`: 4.18.4
- `react-select`: 3.0.4

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.