@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.
- package/CHANGELOG.md +8 -0
- package/dist/app-chrome.cjs +24 -6
- package/dist/app-chrome.cjs.map +1 -1
- package/dist/app-chrome.js +15 -8
- package/dist/app-chrome.js.map +1 -1
- package/dist/{chunk-WHF6YW27.js → chunk-6KX3DWBC.js} +14 -3
- package/dist/chunk-6KX3DWBC.js.map +1 -0
- package/dist/native.cjs +12 -0
- package/dist/native.cjs.map +1 -1
- package/dist/native.d.cts +28 -1
- package/dist/native.d.ts +28 -1
- package/dist/native.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-WHF6YW27.js.map +0 -1
package/dist/native.cjs
CHANGED
|
@@ -490,6 +490,9 @@ function useChromeMe() {
|
|
|
490
490
|
const ctx = react.useContext(NavChromeContext);
|
|
491
491
|
return { me: ctx?.me ?? null, loaded: ctx?.meLoaded ?? false };
|
|
492
492
|
}
|
|
493
|
+
function useNavChromeDedupedFetch() {
|
|
494
|
+
return react.useContext(NavChromeContext)?.dedupedFetch ?? null;
|
|
495
|
+
}
|
|
493
496
|
function useNavChromeFetcher() {
|
|
494
497
|
return react.useContext(NavChromeContext)?.fetchJson ?? null;
|
|
495
498
|
}
|
|
@@ -817,6 +820,10 @@ function FuelAction({ orgId }) {
|
|
|
817
820
|
const [error, setError] = react.useState(false);
|
|
818
821
|
react.useEffect(() => {
|
|
819
822
|
let cancelled = false;
|
|
823
|
+
if (!orgId) {
|
|
824
|
+
setLoading(false);
|
|
825
|
+
return;
|
|
826
|
+
}
|
|
820
827
|
setLoading(true);
|
|
821
828
|
setError(false);
|
|
822
829
|
setFuel(null);
|
|
@@ -1052,6 +1059,10 @@ function NotificationsAction({ orgId }) {
|
|
|
1052
1059
|
}, [orgId]);
|
|
1053
1060
|
react.useEffect(() => {
|
|
1054
1061
|
let cancelled = false;
|
|
1062
|
+
if (!orgId) {
|
|
1063
|
+
setLoading(false);
|
|
1064
|
+
return;
|
|
1065
|
+
}
|
|
1055
1066
|
setLoading(true);
|
|
1056
1067
|
setError(false);
|
|
1057
1068
|
setPayload(null);
|
|
@@ -3934,6 +3945,7 @@ exports.standardPolitogyNav = standardPolitogyNav;
|
|
|
3934
3945
|
exports.topBarIconButtonClass = topBarIconButtonClass;
|
|
3935
3946
|
exports.useChromeMe = useChromeMe;
|
|
3936
3947
|
exports.useChromeOrgs = useChromeOrgs;
|
|
3948
|
+
exports.useNavChromeDedupedFetch = useNavChromeDedupedFetch;
|
|
3937
3949
|
exports.useNavChromeFetcher = useNavChromeFetcher;
|
|
3938
3950
|
exports.useThemePreference = useThemePreference;
|
|
3939
3951
|
//# sourceMappingURL=native.cjs.map
|