You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,14 @@ should change the heading of the (upcoming) version to include a major version b
22
22
23
23
- Fix case where NumberField would not properly reset the field when using programmatic form reset (#4202)[https://github.com/rjsf-team/react-jsonschema-form/issues/4202]
24
24
25
+
## @rjsf/validator-ajv6
26
+
27
+
- Improved performance issues with large schema dependencies and oneOf conditions [#4203](https://github.com/rjsf-team/react-jsonschema-form/issues/4203).
28
+
29
+
## @rjsf/validator-ajv8
30
+
31
+
- Improved performance issues with large schema dependencies and oneOf conditions [#4203](https://github.com/rjsf-team/react-jsonschema-form/issues/4203).
* This function checks if a schema needs to be added and if the root schemas don't match it removes the old root schema from the ajv instance and adds the new one.
164
+
* @param rootSchema - The root schema used to provide $ref resolutions
165
+
*/
166
+
handleSchemaUpdate(rootSchema: RJSFSchema): void{
167
+
constrootSchemaId=ROOT_SCHEMA_PREFIX;
168
+
// add the rootSchema ROOT_SCHEMA_PREFIX as id.
169
+
// if schema validator instance doesn't exist, add it.
170
+
// else 'handleRootSchemaChange' should be called if the root schema changes so we don't have to remove and recompile the schema every run.
* This function checks if a schema needs to be added and if the root schemas don't match it removes the old root schema from the ajv instance and adds the new one.
125
+
* @param rootSchema - The root schema used to provide $ref resolutions
0 commit comments