@firecms/core 3.0.0-canary.110 → 3.0.0-canary.112
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/index.es.js
CHANGED
|
@@ -4081,6 +4081,7 @@ function useBuildNavigationController(props) {
|
|
|
4081
4081
|
);
|
|
4082
4082
|
let shouldUpdateTopLevelNav = false;
|
|
4083
4083
|
if (!areCollectionListsEqual(collectionsRef.current ?? [], resolvedCollections)) {
|
|
4084
|
+
console.log("Collections need to be updated");
|
|
4084
4085
|
collectionsRef.current = resolvedCollections;
|
|
4085
4086
|
shouldUpdateTopLevelNav = true;
|
|
4086
4087
|
}
|
|
@@ -4089,10 +4090,12 @@ function useBuildNavigationController(props) {
|
|
|
4089
4090
|
shouldUpdateTopLevelNav = true;
|
|
4090
4091
|
}
|
|
4091
4092
|
if (!equal(viewsRef.current, resolvedViews)) {
|
|
4093
|
+
console.log("Views need to be updated");
|
|
4092
4094
|
viewsRef.current = resolvedViews;
|
|
4093
4095
|
shouldUpdateTopLevelNav = true;
|
|
4094
4096
|
}
|
|
4095
4097
|
if (!equal(adminViewsRef.current, resolvedAdminViews)) {
|
|
4098
|
+
console.log("Admin views need to be updated");
|
|
4096
4099
|
adminViewsRef.current = resolvedAdminViews;
|
|
4097
4100
|
shouldUpdateTopLevelNav = true;
|
|
4098
4101
|
}
|
|
@@ -4104,8 +4107,10 @@ function useBuildNavigationController(props) {
|
|
|
4104
4107
|
console.error(e);
|
|
4105
4108
|
setNavigationLoadingError(e);
|
|
4106
4109
|
}
|
|
4107
|
-
|
|
4108
|
-
|
|
4110
|
+
if (navigationLoading)
|
|
4111
|
+
setNavigationLoading(false);
|
|
4112
|
+
if (!initialised)
|
|
4113
|
+
setInitialised(true);
|
|
4109
4114
|
}, [
|
|
4110
4115
|
collectionsProp,
|
|
4111
4116
|
collectionPermissions,
|
|
@@ -4333,7 +4338,7 @@ function areCollectionsEqual(a, b) {
|
|
|
4333
4338
|
if (!areCollectionListsEqual(subcollectionsA ?? [], subcollectionsB ?? [])) {
|
|
4334
4339
|
return false;
|
|
4335
4340
|
}
|
|
4336
|
-
return equal(restA, restB);
|
|
4341
|
+
return equal(removeFunctions(restA), removeFunctions(restB));
|
|
4337
4342
|
}
|
|
4338
4343
|
function useBuildLocalConfigurationPersistence() {
|
|
4339
4344
|
const configCache = useRef({});
|