-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
bugneeds triageInitial label given, to be assigned correct labels and assignedInitial label given, to be assigned correct labels and assigned
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
core
Version
5.x
Current Behavior
I am experiencing significant performance issues when using react-jsonschema-form (rjsf) with large schemas. Specifically, when entering text into input fields, there is noticeable lag and delay in rendering updates. This issue becomes more pronounced as the schema size increases, making the form almost unusable for schemas with thousands of properties or deeply nested structures.
Expected Behavior
- Input text updates should be instantaneous, regardless of schema size.
- The form should remain responsive during user interactions.
Steps To Reproduce
- Use a large schema (e.g., one with thousands of properties or deeply nested definitions).
- Render the form using rjsf.
- Attempt to type into an input field.
- you'll notice that the input text is laggy and delayed
NOTE : As i couldn't share any sandbox link, i have attached a large schema sample and a video highlighting the issue (you may use the attached schema in the playground and to replicate the issue -https://rjsf-team.github.io/react-jsonschema-form/)
Recording.7-22.at.14.18.webm
Environment
- OS: windows 11
- Node: 22.16.0
- npm: 10.9.2
Anything else?
Questions -
- Is there a recommended limit on the size or complexity of JSON schemas to maintain optimal performance in rjsf ? As i have a use case of a schema which includes deeply nested definitions, large arrays, and multiple $ref references.
I have also attached a video where i have tried with a large schema with dependency and the input lag is clearly visible -
Recording.7-22.at.16.33.webm
Any assistance on this would be deeply appreciated.
Thanks
Metadata
Metadata
Assignees
Labels
bugneeds triageInitial label given, to be assigned correct labels and assignedInitial label given, to be assigned correct labels and assigned