@chrryai/chrry 1.2.61 → 1.2.62
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -20203,10 +20203,7 @@ function AuthProvider({
|
|
|
20203
20203
|
}
|
|
20204
20204
|
}
|
|
20205
20205
|
);
|
|
20206
|
-
|
|
20207
|
-
if (sessionSwr) {
|
|
20208
|
-
sessionData = sessionSwr;
|
|
20209
|
-
}
|
|
20206
|
+
const sessionData = sessionSwr || session2;
|
|
20210
20207
|
const [allApps, setAllApps] = (0, import_react12.useState)(
|
|
20211
20208
|
sessionData?.apps || []
|
|
20212
20209
|
);
|
|
@@ -20661,7 +20658,7 @@ function DataProvider({
|
|
|
20661
20658
|
const [instructions, setInstructions] = (0, import_react14.useState)([]);
|
|
20662
20659
|
const [affiliateStats, setAffiliateStats] = (0, import_react14.useState)(null);
|
|
20663
20660
|
const [loadingAffiliateStats, setLoadingAffiliateStats] = (0, import_react14.useState)(false);
|
|
20664
|
-
const VERSION3 = "1.2.
|
|
20661
|
+
const VERSION3 = "1.2.62";
|
|
20665
20662
|
const [weather, setWeather] = useLocalStorage("weather", user?.weather || guest?.weather || void 0);
|
|
20666
20663
|
const {
|
|
20667
20664
|
API_URL: API_URL2,
|
|
@@ -21702,7 +21699,7 @@ var init_utils = __esm({
|
|
|
21702
21699
|
window.history.replaceState({}, "", newUrl);
|
|
21703
21700
|
};
|
|
21704
21701
|
isFirefox = typeof navigator !== "undefined" && navigator?.userAgent.includes("Firefox");
|
|
21705
|
-
VERSION = "1.2.
|
|
21702
|
+
VERSION = "1.2.62";
|
|
21706
21703
|
getSlugFromPathname = (path) => {
|
|
21707
21704
|
const siteConfig = getSiteConfig();
|
|
21708
21705
|
return getAppAndStoreSlugs(path, {
|
|
@@ -39574,14 +39571,14 @@ var init_Thread = __esm({
|
|
|
39574
39571
|
}, [shouldRefetchThread]);
|
|
39575
39572
|
const [status, setStatus] = (0, import_react76.useState)(null);
|
|
39576
39573
|
const { actions } = useData();
|
|
39577
|
-
const [shouldFetchThread, setShouldFetchThread] = (0, import_react76.useState)(
|
|
39574
|
+
const [shouldFetchThread, setShouldFetchThread] = (0, import_react76.useState)(!thread2);
|
|
39578
39575
|
const {
|
|
39579
39576
|
data: threadSWR,
|
|
39580
39577
|
mutate,
|
|
39581
39578
|
error,
|
|
39582
39579
|
isLoading: isLoadingThread
|
|
39583
39580
|
} = (0, import_swr6.default)(
|
|
39584
|
-
shouldFetchThread && !isHome && token && id ? ["thread", id, liked] : null,
|
|
39581
|
+
shouldFetchThread && !isHome && token && id ? ["thread", id, liked, until] : null,
|
|
39585
39582
|
() => {
|
|
39586
39583
|
if (!id || !token) return;
|
|
39587
39584
|
return actions.getThread({
|
|
@@ -39598,11 +39595,19 @@ var init_Thread = __esm({
|
|
|
39598
39595
|
// revalidateOnMount: true,
|
|
39599
39596
|
}
|
|
39600
39597
|
);
|
|
39598
|
+
(0, import_react76.useEffect)(() => {
|
|
39599
|
+
setShouldFetchThread(true);
|
|
39600
|
+
}, [router]);
|
|
39601
39601
|
const refetch = () => {
|
|
39602
39602
|
setShouldFetchThread(true);
|
|
39603
39603
|
return mutate();
|
|
39604
39604
|
};
|
|
39605
|
-
const threadData = props.threadData ||
|
|
39605
|
+
const threadData = threadSWR || props.threadData || void 0;
|
|
39606
|
+
console.log(
|
|
39607
|
+
`\u{1F680} ~ file: Thread.tsx:252 ~ threadSWR:`,
|
|
39608
|
+
threadSWR?.thread?.id,
|
|
39609
|
+
shouldFetchThread
|
|
39610
|
+
);
|
|
39606
39611
|
(0, import_react76.useEffect)(() => {
|
|
39607
39612
|
!isLoadingThread && setIsLoading(false);
|
|
39608
39613
|
}, [isLoadingThread]);
|