Skip to content

issue: slow performance of fields (300+ inputs) when reading formState #13129

@evgeniyworkbel

Description

@evgeniyworkbel

Version Number

7.65.0

Codesandbox/Expo snack

https://codesandbox.io/p/sandbox/tender-ace-4434lg

Steps to reproduce

  1. Click button "Add data"
  2. With yup resolver and reading one of formState data has adding near 10 sec

Expected behaviour

I expect that fields register with yup schema almost immediately

  1. clean (without yup hookform resolver and reading formState): almost immediately
  2. with yup hookform resolver: almost immediately
  3. with reading one of formState: almost immediately
  4. with reading one of formState + yup hookform resolver: ~9.5 sec

In production I have more than 300 fields (e.g. there is field array with 600-700 inputs) and application freezes at least 15 sec

What browsers are you seeing the problem on?

Chrome

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions