@tanstack/router-core 1.133.3 → 1.133.10
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 +5 -1
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/cjs/router.d.cts +1 -1
- package/dist/esm/router.d.ts +1 -1
- package/dist/esm/router.js +5 -1
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +7 -2
package/src/router.ts
CHANGED
|
@@ -774,7 +774,7 @@ export interface ViewTransitionOptions {
|
|
|
774
774
|
pathChanged: boolean
|
|
775
775
|
hrefChanged: boolean
|
|
776
776
|
hashChanged: boolean
|
|
777
|
-
}) => Array<string>)
|
|
777
|
+
}) => Array<string> | false)
|
|
778
778
|
}
|
|
779
779
|
|
|
780
780
|
// TODO where is this used? can we remove this?
|
|
@@ -969,7 +969,7 @@ export class RouterCore<
|
|
|
969
969
|
|
|
970
970
|
this.origin = this.options.origin
|
|
971
971
|
if (!this.origin) {
|
|
972
|
-
if (!this.isServer) {
|
|
972
|
+
if (!this.isServer && window?.origin && window.origin !== 'null') {
|
|
973
973
|
this.origin = window.origin
|
|
974
974
|
} else {
|
|
975
975
|
// fallback for the server, can be overridden by calling router.update({origin}) on the server
|
|
@@ -2175,6 +2175,11 @@ export class RouterCore<
|
|
|
2175
2175
|
)
|
|
2176
2176
|
: shouldViewTransition.types
|
|
2177
2177
|
|
|
2178
|
+
if (resolvedViewTransitionTypes === false) {
|
|
2179
|
+
fn()
|
|
2180
|
+
return
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2178
2183
|
startViewTransitionParams = {
|
|
2179
2184
|
update: fn,
|
|
2180
2185
|
types: resolvedViewTransitionTypes,
|