Closed KittyJose closed 8 months ago
I had to cut my schema a bit, coz i hit maximum limit. But i can send you the entire schema (if required). This problem prevails for any of and one of.
I'm also facing the same issue @KittyJose
@Sakthivelgovindan This was fixed in the recent updates - perhaps check if the versions are same?
"react-jsonschema-form": "^1.8.1",
This issue has been automatically marked as possibly close because it has not had recent activity. It will be closed if no further activity occurs. Please leave a comment if this is still an issue for you. Thank you.
This issue was closed because of lack of recent activity. Reopen if you still need assistance.
Description Form rendering is very slow when "OneOf" property is defined.
Steps to Reproduce
Copy below provided SCHEMA, which has OneOf defined in nested levels... on rendering Form takes a lot of time (minimum 45 seconds to 2 minutes).
One of works perfectly on a small schema with less nested levels. But on large schemas the webpage gets frozen and stuck.
I suspect the reason is in SchemaField.js => on encountering one of property the whole schema is rechecked everytime to encounter another one of within the schema and the process goes on recursively. It would be great if we could resolve this recursive schema checking faster or maybe turn off schema checking if oneOf options properties are defined from the front end.
Reproduce by using below schema
ReactDOM.render((
), document.getElementById("app"));```
Expected behavior Form to render within seconds ...
Actual behavior Form takes minimum 45 seconds to 2 minutes to load and webpage gets stuck/ frozen
Version
@rjsf/core": "^3.2.0