@rangojs/router 0.0.0-experimental.a5f27bd5 → 0.0.0-experimental.cb54cbba
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/vite/index.js
CHANGED
|
@@ -1745,7 +1745,7 @@ import { resolve } from "node:path";
|
|
|
1745
1745
|
// package.json
|
|
1746
1746
|
var package_default = {
|
|
1747
1747
|
name: "@rangojs/router",
|
|
1748
|
-
version: "0.0.0-experimental.
|
|
1748
|
+
version: "0.0.0-experimental.cb54cbba",
|
|
1749
1749
|
description: "Django-inspired RSC router with composable URL patterns",
|
|
1750
1750
|
keywords: [
|
|
1751
1751
|
"react",
|
package/package.json
CHANGED
|
@@ -40,11 +40,6 @@ if (typeof Symbol.dispose === "undefined") {
|
|
|
40
40
|
(Symbol as any).dispose = Symbol("Symbol.dispose");
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
/** Get IDs of non-loader segments (layouts, routes, parallels). */
|
|
44
|
-
function getNonLoaderSegmentIds(segments: ResolvedSegment[]): string[] {
|
|
45
|
-
return segments.filter((s) => s.type !== "loader").map((s) => s.id);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
43
|
export { createNavigationTransaction };
|
|
49
44
|
|
|
50
45
|
/**
|
|
@@ -284,7 +279,7 @@ export function createNavigationBridge(
|
|
|
284
279
|
await fetchPartialUpdate(
|
|
285
280
|
url,
|
|
286
281
|
hasUsableCache
|
|
287
|
-
?
|
|
282
|
+
? cachedSegments!.map((s) => s.id)
|
|
288
283
|
: options?._skipCache
|
|
289
284
|
? [] // Action redirect: send no segments so server renders everything fresh
|
|
290
285
|
: undefined,
|
|
@@ -497,7 +492,7 @@ export function createNavigationBridge(
|
|
|
497
492
|
if (isStale) {
|
|
498
493
|
debugLog("[Browser] Cache is stale, background revalidating...");
|
|
499
494
|
// Background revalidation - don't await, just fire and forget
|
|
500
|
-
const segmentIds =
|
|
495
|
+
const segmentIds = cachedSegments.map((s) => s.id);
|
|
501
496
|
|
|
502
497
|
const tx = createNavigationTransaction(
|
|
503
498
|
store,
|