Skip to content

5.3.0: Array items perform much worse #3517

Open
@MatinF

Description

@MatinF

Prerequisites

What theme are you using?

core

Version

5.0.0-beta.18 vs. 5.0.0-beta.19

Current Behavior

We wanted to test out the latest update to rjsf (upgrading from 5.0.0 beta11 to 5.3.0) in order to benefit from the new ability to 'copy' array items, which was added as a feature in the latest release.

Unfortunately, the performance of the updated version is much worse when it comes to adding/removing array items - to an extent where it now takes ~1-2 seconds to add a new entry, up from <0.1 seconds in the previous release. After isolating the release introducing this, it seems to start after 5.0.0-beta.18.

I am unable to replicate this in the live playground, though I am unsure why.

Expected Behavior

I would expect the performance to be similar to previous versions.

Steps To Reproduce

  1. Use a standard rjsf setup with 5.0.0-beta.18 vs. 5.0.0-beta.19

  2. Use below custom array template:

  3. To replicate this, test with the below formdata (config) and schema/uischema. The slow performance can be seen by going to CAN CH1 and adding entries in the Transmit list section.
    json-schema.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions