@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/dist/cjs/router.cjs +4 -1
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/cjs/router.d.cts +6 -1
- package/dist/esm/router.d.ts +6 -1
- package/dist/esm/router.js +4 -1
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +10 -1
package/package.json
CHANGED
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<
|