final-form / final-form/react-final-form-hooks
TypeError: Cannot read property 'subscription' of undefined
Open
- Dominant language
- JavaScript
- Stars
- 469
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
Apparently the following is not allowed:
```
const Compo = () => {
useForm();
}
```
I know it's kinda silly because presumably any reasonable usage would pass some `{validate}` or `{initialValues}` or `{onSubmit}` to the form hook...
Contributor guide
Research direction
Start by reproducing the minimal component that calls useForm() without options and inspect the useForm entry point and its error path. Done means the bare hook call no longer throws the reported TypeError, while the existing option-based usage remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100