We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 231e6f2 commit 369edcfCopy full SHA for 369edcf
src/v2/hooks/useField.ts
@@ -28,7 +28,7 @@ export const useField = <TSchema extends ISchemaFieldCore>(props: {
28
const latestState = _state.current;
29
const state = form.getSchemaFieldState(schema as any);
30
if (JSON.stringify(state) !== JSON.stringify(latestState)) {
31
- _state.current = state;
+ _state.current = structuredClone(state);
32
update();
33
}
34
},
0 commit comments