@tanstack/router-core 1.159.4 → 1.159.6

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.
@@ -107,14 +107,14 @@ class RouterCore {
107
107
  if (this.options.routeTree !== this.routeTree) {
108
108
  this.routeTree = this.options.routeTree;
109
109
  let processRouteTreeResult;
110
- if ((isServer ?? this.isServer) && globalThis.__TSR_CACHE__ && globalThis.__TSR_CACHE__.routeTree === this.routeTree) {
110
+ if ((isServer ?? this.isServer) && process.env.NODE_ENV !== "development" && globalThis.__TSR_CACHE__ && globalThis.__TSR_CACHE__.routeTree === this.routeTree) {
111
111
  const cached = globalThis.__TSR_CACHE__;
112
112
  this.resolvePathCache = cached.resolvePathCache;
113
113
  processRouteTreeResult = cached.processRouteTreeResult;
114
114
  } else {
115
115
  this.resolvePathCache = createLRUCache(1e3);
116
116
  processRouteTreeResult = this.buildRouteTree();
117
- if ((isServer ?? this.isServer) && globalThis.__TSR_CACHE__ === void 0) {
117
+ if ((isServer ?? this.isServer) && process.env.NODE_ENV !== "development" && globalThis.__TSR_CACHE__ === void 0) {
118
118
  globalThis.__TSR_CACHE__ = {
119
119
  routeTree: this.routeTree,
120
120
  processRouteTreeResult,