@clerk/shared 3.31.0 → 3.31.1-snapshot.v20251105162613
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/runtime/color-CPeLVdj4.d.mts.map +1 -1
- package/dist/runtime/date-DDNRUU0r.d.ts.map +1 -1
- package/dist/runtime/error-N5pE9_pc.d.mts.map +1 -1
- package/dist/runtime/globs.d.mts.map +1 -1
- package/dist/runtime/globs.d.ts.map +1 -1
- package/dist/runtime/index-QKCu8BC3.d.ts.map +1 -1
- package/dist/runtime/index.js +2 -2
- package/dist/runtime/index.mjs +2 -2
- package/dist/runtime/{loadClerkJsScript-B6B9VpJL.mjs → loadClerkJsScript-CqAq0B5f.mjs} +2 -2
- package/dist/runtime/{loadClerkJsScript-B6B9VpJL.mjs.map → loadClerkJsScript-CqAq0B5f.mjs.map} +1 -1
- package/dist/runtime/{loadClerkJsScript-BIPE-l3G.js → loadClerkJsScript-SFD6IA1A.js} +2 -2
- package/dist/runtime/{loadClerkJsScript-BIPE-l3G.js.map → loadClerkJsScript-SFD6IA1A.js.map} +1 -1
- package/dist/runtime/loadClerkJsScript.js +2 -2
- package/dist/runtime/loadClerkJsScript.mjs +2 -2
- package/dist/runtime/pathMatcher-CFwDMx3z.d.ts.map +1 -1
- package/dist/runtime/pathMatcher-n7OPVmtA.d.mts.map +1 -1
- package/dist/runtime/poller-CIrx6NwR.d.ts.map +1 -1
- package/dist/runtime/poller-Cn-a74Uo.d.mts.map +1 -1
- package/dist/runtime/react/index.js +5 -1
- package/dist/runtime/react/index.js.map +1 -1
- package/dist/runtime/react/index.mjs +5 -1
- package/dist/runtime/react/index.mjs.map +1 -1
- package/dist/runtime/url-2rfd29Os.d.mts.map +1 -1
- package/dist/runtime/url-Ms4rigVZ.d.ts.map +1 -1
- package/dist/runtime/{versionSelector-BKo0Znsl.js → versionSelector-2V8yqqgZ.js} +3 -3
- package/dist/runtime/{versionSelector-BKo0Znsl.js.map → versionSelector-2V8yqqgZ.js.map} +1 -1
- package/dist/runtime/{versionSelector-Ctjkw92Q.mjs → versionSelector-w-Zk-G-8.mjs} +3 -3
- package/dist/runtime/{versionSelector-Ctjkw92Q.mjs.map → versionSelector-w-Zk-G-8.mjs.map} +1 -1
- package/dist/runtime/versionSelector.js +1 -1
- package/dist/runtime/versionSelector.mjs +1 -1
- package/dist/types/index.d.mts.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -216,6 +216,10 @@ const cachingSWROptions = {
|
|
|
216
216
|
dedupingInterval: 1e3 * 60,
|
|
217
217
|
focusThrottleInterval: 1e3 * 60 * 2
|
|
218
218
|
};
|
|
219
|
+
const cachingSWRInfiniteOptions = {
|
|
220
|
+
...cachingSWROptions,
|
|
221
|
+
revalidateFirstPage: false
|
|
222
|
+
};
|
|
219
223
|
/**
|
|
220
224
|
* A flexible pagination hook that supports both traditional pagination and infinite loading.
|
|
221
225
|
* It provides a unified API for handling paginated data fetching, with built-in caching through SWR.
|
|
@@ -273,7 +277,7 @@ const usePagesOrInfinite = (params, fetcher, config, cacheKeys) => {
|
|
|
273
277
|
}, (cacheKeyParams) => {
|
|
274
278
|
const requestParams = getDifferentKeys(cacheKeyParams, cacheKeys);
|
|
275
279
|
return fetcher?.(requestParams);
|
|
276
|
-
},
|
|
280
|
+
}, cachingSWRInfiniteOptions);
|
|
277
281
|
const page = useMemo(() => {
|
|
278
282
|
if (triggerInfinite) return size;
|
|
279
283
|
return paginatedPage;
|