@arquimedes.co/eureka-forms 3.0.27-test → 3.0.28-test
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/dist/App/AppHooks.js +4 -2
- package/package.json +1 -1
package/dist/App/AppHooks.js
CHANGED
|
@@ -114,11 +114,13 @@ export const useSetupApp = (isEmbedded, props) => {
|
|
|
114
114
|
};
|
|
115
115
|
useEffect(() => {
|
|
116
116
|
void loadData();
|
|
117
|
+
// eslint-disable-next-line no-console
|
|
118
|
+
console.log('Changed!');
|
|
117
119
|
return () => {
|
|
118
120
|
dispatch({ type: 'CLEAR' });
|
|
119
121
|
};
|
|
120
122
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
121
|
-
}, [props]);
|
|
123
|
+
}, [props.formData, props.valuesData]);
|
|
122
124
|
const reload = useCallback(() => {
|
|
123
125
|
if (!form)
|
|
124
126
|
return;
|
|
@@ -135,7 +137,7 @@ export const useSetupApp = (isEmbedded, props) => {
|
|
|
135
137
|
return {
|
|
136
138
|
form,
|
|
137
139
|
organization,
|
|
138
|
-
branding: organization?.customBrandings ? form?.branding ?? organization.branding : organization?.branding,
|
|
140
|
+
branding: organization?.customBrandings ? (form?.branding ?? organization.branding) : organization?.branding,
|
|
139
141
|
reload,
|
|
140
142
|
};
|
|
141
143
|
};
|
package/package.json
CHANGED