Skip to content

Performance issue when using LayoutGrid with Live validation #4796

@puco

Description

@puco

Prerequisites

What theme are you using?

core

Version

6.0.0-beta.20

Current Behavior

We observed this issue with our implementation of rjsf but were able to reproduce it also on current playground version. When in playground using the "Layout Grid" sample with "Live validation" turned on, after couple of edits (e.g. writing approx 30 characters in various fields) the whole form/page becomes unresponsive. Each change (writing into text field, toggling a checkbox) takes more than a second.

Expected Behavior

The performance should not degrade.

Steps To Reproduce

  1. In Firefox:
  2. Open playground, choose "Layout Grid" and switch on "Live validation"
  3. Write 1234567890 into First Name using keyboard
  4. Write 1234567890 into Middle Name
  5. Write 1234567890 into Last Name
  6. Write 1234567890 into AddressExpected: The form should update quickly
    Actual: Every keypress is reflected in the Input and Data after ~1s

Environment

- OS: Windows 11
- Browser: Firefox, Chrome

Anything else?

I think this is tied to Layout Grid. Even without Live validation there is stuttering when data is changed quickly. In Chrome the issue is less noticeable but the performance still degrades.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions