@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/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,