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