diff --git a/packages/json-schema/src/compiler.ts b/packages/json-schema/src/compiler.ts index cc2a27c56e4..7f0037eba41 100644 --- a/packages/json-schema/src/compiler.ts +++ b/packages/json-schema/src/compiler.ts @@ -124,9 +124,11 @@ export const patchSchemaCompile = ( }) if (compiled === undefined) return if (demand) { - if (collected || !targetState.initialized) { - patchStateFormSchema(targetState, path, compiled) - } + untracked(() => { + if (collected || !targetState.initialized) { + patchStateFormSchema(targetState, path, compiled) + } + }) } else { patchStateFormSchema(targetState, path, compiled) }