@the-portland-company/shell 0.76.0 → 0.76.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.
@@ -249,6 +249,9 @@ function useChromeMe() {
249
249
  const ctx = useContext(NavChromeContext);
250
250
  return { me: ctx?.me ?? null, loaded: ctx?.meLoaded ?? false };
251
251
  }
252
+ function useNavChromeDedupedFetch() {
253
+ return useContext(NavChromeContext)?.dedupedFetch ?? null;
254
+ }
252
255
  function useNavChromeFetcher() {
253
256
  return useContext(NavChromeContext)?.fetchJson ?? null;
254
257
  }
@@ -576,6 +579,10 @@ function FuelAction({ orgId }) {
576
579
  const [error, setError] = useState(false);
577
580
  useEffect(() => {
578
581
  let cancelled = false;
582
+ if (!orgId) {
583
+ setLoading(false);
584
+ return;
585
+ }
579
586
  setLoading(true);
580
587
  setError(false);
581
588
  setFuel(null);
@@ -811,6 +818,10 @@ function NotificationsAction({ orgId }) {
811
818
  }, [orgId]);
812
819
  useEffect(() => {
813
820
  let cancelled = false;
821
+ if (!orgId) {
822
+ setLoading(false);
823
+ return;
824
+ }
814
825
  setLoading(true);
815
826
  setError(false);
816
827
  setPayload(null);
@@ -3656,6 +3667,6 @@ function NavAppShell({
3656
3667
  );
3657
3668
  }
3658
3669
 
3659
- export { BETA_BANNER_DISMISS_KEY, CAMPAIGN_FEATURE_AVAILABILITY, CORE_APP_ORIGIN, CORE_BILLING_PATH, FuelAction, NavAppShell, NavBetaBanner, NavChromeProvider, NavDisplayAction, NavSidebar, NavTabStrip, NavThemeControl, NavTopBar, NotificationsAction, SPECS_ORIGIN, SpecOverlayAction, SupportAction, TopBarCountBadge, TopBarPanelArrow, TopBarPopover, TopBarTooltip, TopBarWidgetSlot, clearBetaBannerDismissal, envChipClasses, isNavItemActive, modeIdFromLabel, resolveOrgLogoUrl, shortEnvLabel, shortUserName, standardNavIcons, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeFetcher, useThemePreference };
3660
- //# sourceMappingURL=chunk-WHF6YW27.js.map
3661
- //# sourceMappingURL=chunk-WHF6YW27.js.map
3670
+ export { BETA_BANNER_DISMISS_KEY, CAMPAIGN_FEATURE_AVAILABILITY, CORE_APP_ORIGIN, CORE_BILLING_PATH, FuelAction, NavAppShell, NavBetaBanner, NavChromeProvider, NavDisplayAction, NavSidebar, NavTabStrip, NavThemeControl, NavTopBar, NotificationsAction, SPECS_ORIGIN, SpecOverlayAction, SupportAction, TopBarCountBadge, TopBarPanelArrow, TopBarPopover, TopBarTooltip, TopBarWidgetSlot, clearBetaBannerDismissal, envChipClasses, isNavItemActive, modeIdFromLabel, resolveOrgLogoUrl, shortEnvLabel, shortUserName, standardNavIcons, standardPolitogyNav, topBarIconButtonClass, useChromeMe, useChromeOrgs, useNavChromeDedupedFetch, useNavChromeFetcher, useThemePreference };
3671
+ //# sourceMappingURL=chunk-6KX3DWBC.js.map
3672
+ //# sourceMappingURL=chunk-6KX3DWBC.js.map