@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/router-core",
3
- "version": "1.130.1",
3
+ "version": "1.130.2",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
package/src/router.ts CHANGED
@@ -346,6 +346,11 @@ export interface RouterOptions<
346
346
  */
347
347
  isShell?: boolean
348
348
 
349
+ /**
350
+ * @default false
351
+ */
352
+ isPrerendering?: boolean
353
+
349
354
  /**
350
355
  * The default `ssr` a route should use if no `ssr` is provided.
351
356
  *
@@ -833,7 +838,11 @@ export class RouterCore<
833
838
  startTransition: StartTransitionFn = (fn) => fn()
834
839
 
835
840
  isShell() {
836
- return this.options.isShell
841
+ return !!this.options.isShell
842
+ }
843
+
844
+ isPrerendering() {
845
+ return !!this.options.isPrerendering
837
846
  }
838
847
 
839
848
  update: UpdateFn<