shadcn-ui / ui

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
https://ui.shadcn.com
MIT License
58.56k stars 3.19k forks source link

[bug]: slow performance with array list form after validation #3570

Open syssam opened 3 weeks ago

syssam commented 3 weeks ago

Describe the bug

slow performance with array list form after validation, it seems to trigger all input filed after call validation even if you change 1 field value.

Affected component/components

FormField

How to reproduce

  1. https://ui.shadcn.com/docs/components/form
  2. create array list of the form

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

Chrome

Before submitting

reubenporterjisc commented 2 weeks ago

I am experiencing the same issue.

syssam commented 2 weeks ago

https://github.com/shadcn-ui/ui/pull/1339