@tanstack/router-core 1.120.10 → 1.120.13

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.
@@ -74,10 +74,7 @@ class RouterCore {
74
74
  this.basepath = `/${path.trimPath(newOptions.basepath)}`;
75
75
  }
76
76
  }
77
- if (
78
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
79
- !this.history || this.options.history && this.options.history !== this.history
80
- ) {
77
+ if (!this.history || this.options.history && this.options.history !== this.history) {
81
78
  this.history = this.options.history ?? (this.isServer ? history.createMemoryHistory({
82
79
  initialEntries: [this.basepath || "/"]
83
80
  }) : history.createBrowserHistory());
@@ -100,8 +97,7 @@ class RouterCore {
100
97
  });
101
98
  scrollRestoration.setupScrollRestoration(this);
102
99
  }
103
- if (typeof window !== "undefined" && "CSS" in window && // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
104
- typeof ((_a = window.CSS) == null ? void 0 : _a.supports) === "function") {
100
+ if (typeof window !== "undefined" && "CSS" in window && typeof ((_a = window.CSS) == null ? void 0 : _a.supports) === "function") {
105
101
  this.isViewTransitionTypesSupported = window.CSS.supports(
106
102
  "selector(:active-view-transition-type(a)"
107
103
  );