@pdfme/ui 5.5.4-dev.1 → 5.5.5-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfme/ui",
3
- "version": "5.5.4-dev.1",
3
+ "version": "5.5.5-dev.1",
4
4
  "sideEffects": false,
5
5
  "author": "hand-dot",
6
6
  "license": "MIT",
@@ -87,7 +87,9 @@ const DetailView = (props: DetailViewProps) => {
87
87
  });
88
88
  }
89
89
  setWidgets(newWidgets);
90
- }, [activeSchema, options, pluginsRegistry, props, token, typedI18n]);
90
+ }, [activeSchema, pluginsRegistry, JSON.stringify(options)]);
91
+
92
+ useEffect(() => form.resetFields(), [activeSchema.id]);
91
93
 
92
94
  useEffect(() => {
93
95
  // Create a type-safe copy of the schema with editable property
@@ -96,9 +98,7 @@ const DetailView = (props: DetailViewProps) => {
96
98
  const readOnly = typeof values.readOnly === 'boolean' ? values.readOnly : false;
97
99
  values.editable = !readOnly;
98
100
  form.setValues(values);
99
- }, [activeSchema, form]);
100
-
101
- useEffect(() => form.resetFields(), [activeSchema.id, form]);
101
+ }, [activeSchema]);
102
102
 
103
103
  useEffect(() => {
104
104
  uniqueSchemaName.current = (value: string): boolean => {