@tanstack/router-core 1.121.40 → 1.123.0
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/cjs/index.d.cts +1 -1
- package/dist/cjs/route.cjs.map +1 -1
- package/dist/cjs/route.d.cts +6 -1
- package/dist/cjs/router.cjs +1 -1
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/cjs/router.d.cts +1 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/route.d.ts +6 -1
- package/dist/esm/route.js.map +1 -1
- package/dist/esm/router.d.ts +1 -0
- package/dist/esm/router.js +1 -1
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/route.ts +9 -1
- package/src/router.ts +2 -1
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/route.ts
CHANGED
|
@@ -1205,6 +1205,13 @@ export interface LoaderFnContext<
|
|
|
1205
1205
|
route: AnyRoute
|
|
1206
1206
|
}
|
|
1207
1207
|
|
|
1208
|
+
export interface DefaultRootRouteOptionsExtensions {
|
|
1209
|
+
shellComponent?: unknown
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
export interface RootRouteOptionsExtensions
|
|
1213
|
+
extends DefaultRootRouteOptionsExtensions {}
|
|
1214
|
+
|
|
1208
1215
|
export type RootRouteOptions<
|
|
1209
1216
|
TSearchValidator = undefined,
|
|
1210
1217
|
TRouterContext = {},
|
|
@@ -1234,7 +1241,8 @@ export type RootRouteOptions<
|
|
|
1234
1241
|
| 'parseParams'
|
|
1235
1242
|
| 'stringifyParams'
|
|
1236
1243
|
| 'params'
|
|
1237
|
-
>
|
|
1244
|
+
> &
|
|
1245
|
+
RootRouteOptionsExtensions
|
|
1238
1246
|
|
|
1239
1247
|
export type RouteConstraints = {
|
|
1240
1248
|
TParentRoute: AnyRoute
|
package/src/router.ts
CHANGED
|
@@ -588,6 +588,7 @@ export type UpdateFn<
|
|
|
588
588
|
export type InvalidateFn<TRouter extends AnyRouter> = (opts?: {
|
|
589
589
|
filter?: (d: MakeRouteMatchUnion<TRouter>) => boolean
|
|
590
590
|
sync?: boolean
|
|
591
|
+
forcePending?: boolean
|
|
591
592
|
}) => Promise<void>
|
|
592
593
|
|
|
593
594
|
export type ParseLocationFn<TRouteTree extends AnyRoute> = (
|
|
@@ -2631,7 +2632,7 @@ export class RouterCore<
|
|
|
2631
2632
|
return {
|
|
2632
2633
|
...d,
|
|
2633
2634
|
invalid: true,
|
|
2634
|
-
...(d.status === 'error'
|
|
2635
|
+
...(opts?.forcePending || d.status === 'error'
|
|
2635
2636
|
? ({ status: 'pending', error: undefined } as const)
|
|
2636
2637
|
: {}),
|
|
2637
2638
|
}
|