@firecms/core 3.0.0-canary.110 → 3.0.0-canary.111

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.umd.js CHANGED
@@ -4085,6 +4085,7 @@
4085
4085
  );
4086
4086
  let shouldUpdateTopLevelNav = false;
4087
4087
  if (!areCollectionListsEqual(collectionsRef.current ?? [], resolvedCollections)) {
4088
+ console.log("Collections need to be updated");
4088
4089
  collectionsRef.current = resolvedCollections;
4089
4090
  shouldUpdateTopLevelNav = true;
4090
4091
  }
@@ -4093,10 +4094,12 @@
4093
4094
  shouldUpdateTopLevelNav = true;
4094
4095
  }
4095
4096
  if (!equal(viewsRef.current, resolvedViews)) {
4097
+ console.log("Views need to be updated");
4096
4098
  viewsRef.current = resolvedViews;
4097
4099
  shouldUpdateTopLevelNav = true;
4098
4100
  }
4099
4101
  if (!equal(adminViewsRef.current, resolvedAdminViews)) {
4102
+ console.log("Admin views need to be updated");
4100
4103
  adminViewsRef.current = resolvedAdminViews;
4101
4104
  shouldUpdateTopLevelNav = true;
4102
4105
  }
@@ -4108,8 +4111,10 @@
4108
4111
  console.error(e);
4109
4112
  setNavigationLoadingError(e);
4110
4113
  }
4111
- setNavigationLoading(false);
4112
- setInitialised(true);
4114
+ if (navigationLoading)
4115
+ setNavigationLoading(false);
4116
+ if (!initialised)
4117
+ setInitialised(true);
4113
4118
  }, [
4114
4119
  collectionsProp,
4115
4120
  collectionPermissions,
@@ -4337,7 +4342,7 @@
4337
4342
  if (!areCollectionListsEqual(subcollectionsA ?? [], subcollectionsB ?? [])) {
4338
4343
  return false;
4339
4344
  }
4340
- return equal(restA, restB);
4345
+ return equal(removeFunctions(restA), removeFunctions(restB));
4341
4346
  }
4342
4347
  function useBuildLocalConfigurationPersistence() {
4343
4348
  const configCache = React.useRef({});