@tanstack/router-core 1.122.0 → 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/router.cjs +1 -1
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/cjs/router.d.cts +1 -0
- 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/router.ts +2 -1
package/dist/cjs/router.d.cts
CHANGED
|
@@ -396,6 +396,7 @@ export type UpdateFn<TRouteTree extends AnyRoute, TTrailingSlashOption extends T
|
|
|
396
396
|
export type InvalidateFn<TRouter extends AnyRouter> = (opts?: {
|
|
397
397
|
filter?: (d: MakeRouteMatchUnion<TRouter>) => boolean;
|
|
398
398
|
sync?: boolean;
|
|
399
|
+
forcePending?: boolean;
|
|
399
400
|
}) => Promise<void>;
|
|
400
401
|
export type ParseLocationFn<TRouteTree extends AnyRoute> = (previousLocation?: ParsedLocation<FullSearchSchema<TRouteTree>>, locationToParse?: HistoryLocation) => ParsedLocation<FullSearchSchema<TRouteTree>>;
|
|
401
402
|
export type GetMatchRoutesFn = (pathname: string, routePathname: string | undefined) => {
|
package/dist/esm/router.d.ts
CHANGED
|
@@ -396,6 +396,7 @@ export type UpdateFn<TRouteTree extends AnyRoute, TTrailingSlashOption extends T
|
|
|
396
396
|
export type InvalidateFn<TRouter extends AnyRouter> = (opts?: {
|
|
397
397
|
filter?: (d: MakeRouteMatchUnion<TRouter>) => boolean;
|
|
398
398
|
sync?: boolean;
|
|
399
|
+
forcePending?: boolean;
|
|
399
400
|
}) => Promise<void>;
|
|
400
401
|
export type ParseLocationFn<TRouteTree extends AnyRoute> = (previousLocation?: ParsedLocation<FullSearchSchema<TRouteTree>>, locationToParse?: HistoryLocation) => ParsedLocation<FullSearchSchema<TRouteTree>>;
|
|
401
402
|
export type GetMatchRoutesFn = (pathname: string, routePathname: string | undefined) => {
|
package/dist/esm/router.js
CHANGED
|
@@ -1097,7 +1097,7 @@ class RouterCore {
|
|
|
1097
1097
|
return {
|
|
1098
1098
|
...d,
|
|
1099
1099
|
invalid: true,
|
|
1100
|
-
...d.status === "error" ? { status: "pending", error: void 0 } : {}
|
|
1100
|
+
...(opts == null ? void 0 : opts.forcePending) || d.status === "error" ? { status: "pending", error: void 0 } : {}
|
|
1101
1101
|
};
|
|
1102
1102
|
}
|
|
1103
1103
|
return d;
|