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

TypeError in publishFieldState for async validate with delayed appearance

Open
#883 5 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**?
bug report

### What is the current behavior?
uncaught error in console

### What is the expected behavior?
no error

### Sandbox Link
[https://codesandbox.io/s/react-final-form-simple-example-forked-r5jmc?file=/index.js](https://codesandbox.io/s/react-final-form-simple-example-forked-r5jmc?file=/index.js)

### What's your environment?
final-form 4.20.1
react 17.0.1
react-dom 17.0.1
react-final-from 6.5.2
(also happens on older versions of these packages)

### Other information
The minimal error reproduction is very short, only 21 lines total. If either the delay or the async are removed, the error disappears.

In the original code, editable fields are generated for components that don't appear until some data is downloaded from a server, thus the delay. The inputs also require async validation.

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.