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

useForm returns undecorated form at first render

Open
#634 0 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

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

Bug

### What is the current behavior?

Decorators are added ofter form is rendered.

### What is the expected behavior?

Decorators should be added before render.

### Sandbox Link
https://codesandbox.io/s/silly-ritchie-pn9ns

### What's your environment?
RFF v6.3.0

### Other information

My custom decorator adds a method on the form object (which registers event listeners) but in a component that calls `useForm` the method isn't available on the form object on first render.

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.