react-component / react-component/field-form

Error happens in useForm example

Open
#438 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1k
Forks
286
Avg merge
4d 16h
Merged PRs (30d)
1

Description

Example: https://field-form-react-component.vercel.app/demo/use-form, open the codesandbox of this example, e.g: https://codesandbox.io/s/30i0lr

The error occurred during App initialization.

TypeError Cannot read properties of undefined (reading 'isBatchingLegacy')

Change the version of react-dom to 16.14.0 same with the react package, and the error is gone.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the useForm example and its linked CodeSandbox, then inspect the React and react-dom dependency versions. Reproduce the App initialization error and verify that matching 16.14.0 versions allow the example to load without the isBatchingLegacy TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.