@rangojs/router 0.0.0-experimental.26 → 0.0.0-experimental.27

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.
@@ -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.26",
1748
+ version: "0.0.0-experimental.27",
1749
1749
  description: "Django-inspired RSC router with composable URL patterns",
1750
1750
  keywords: [
1751
1751
  "react",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rangojs/router",
3
- "version": "0.0.0-experimental.26",
3
+ "version": "0.0.0-experimental.27",
4
4
  "description": "Django-inspired RSC router with composable URL patterns",
5
5
  "keywords": [
6
6
  "react",
@@ -145,8 +145,17 @@ export async function evaluateRevalidation<TEnv>(
145
145
  segmentId: segment.id,
146
146
  });
147
147
  }
148
+ } else if (segment.belongsToRoute && paramsChanged) {
149
+ // Children of the route path (loaders, orphan layouts/parallels)
150
+ // revalidate when params change — they likely depend on route params
151
+ defaultShouldRevalidate = true;
152
+ defaultReason = "nav:route-child-params-changed";
153
+ debugLog("revalidation", "route child revalidating (params changed)", {
154
+ segmentId: segment.id,
155
+ segmentType: segment.type,
156
+ });
148
157
  } else {
149
- // Layouts and parallels default to no revalidation
158
+ // Parent layouts and parallels default to no revalidation
150
159
  // Cannot assume these segments depend on params without explicit declaration
151
160
  // Use custom revalidation functions to opt-in when needed
152
161
  defaultShouldRevalidate = false;