@tanstack/router-core 1.130.1 → 1.130.2

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.
@@ -253,6 +253,10 @@ export interface RouterOptions<TRouteTree extends AnyRoute, TTrailingSlashOption
253
253
  * @default false
254
254
  */
255
255
  isShell?: boolean;
256
+ /**
257
+ * @default false
258
+ */
259
+ isPrerendering?: boolean;
256
260
  /**
257
261
  * The default `ssr` a route should use if no `ssr` is provided.
258
262
  *
@@ -496,7 +500,8 @@ export declare class RouterCore<in out TRouteTree extends AnyRoute, in out TTrai
496
500
  */
497
501
  constructor(options: RouterConstructorOptions<TRouteTree, TTrailingSlashOption, TDefaultStructuralSharingOption, TRouterHistory, TDehydrated>);
498
502
  startTransition: StartTransitionFn;
499
- isShell(): boolean | undefined;
503
+ isShell(): boolean;
504
+ isPrerendering(): boolean;
500
505
  update: UpdateFn<TRouteTree, TTrailingSlashOption, TDefaultStructuralSharingOption, TRouterHistory, TDehydrated>;
501
506
  get state(): RouterState<TRouteTree, import('./Matches.cjs').RouteMatch<any, any, any, any, any, any, any>>;
502
507
  buildRouteTree: () => void;
@@ -253,6 +253,10 @@ export interface RouterOptions<TRouteTree extends AnyRoute, TTrailingSlashOption
253
253
  * @default false
254
254
  */
255
255
  isShell?: boolean;
256
+ /**
257
+ * @default false
258
+ */
259
+ isPrerendering?: boolean;
256
260
  /**
257
261
  * The default `ssr` a route should use if no `ssr` is provided.
258
262
  *
@@ -496,7 +500,8 @@ export declare class RouterCore<in out TRouteTree extends AnyRoute, in out TTrai
496
500
  */
497
501
  constructor(options: RouterConstructorOptions<TRouteTree, TTrailingSlashOption, TDefaultStructuralSharingOption, TRouterHistory, TDehydrated>);
498
502
  startTransition: StartTransitionFn;
499
- isShell(): boolean | undefined;
503
+ isShell(): boolean;
504
+ isPrerendering(): boolean;
500
505
  update: UpdateFn<TRouteTree, TTrailingSlashOption, TDefaultStructuralSharingOption, TRouterHistory, TDehydrated>;
501
506
  get state(): RouterState<TRouteTree, import('./Matches.js').RouteMatch<any, any, any, any, any, any, any>>;
502
507
  buildRouteTree: () => void;
@@ -1457,7 +1457,10 @@ class RouterCore {
1457
1457
  }
1458
1458
  }
1459
1459
  isShell() {
1460
- return this.options.isShell;
1460
+ return !!this.options.isShell;
1461
+ }
1462
+ isPrerendering() {
1463
+ return !!this.options.isPrerendering;
1461
1464
  }
1462
1465
  get state() {
1463
1466
  return this.__store.state;