@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/router-core",
3
- "version": "1.159.4",
3
+ "version": "1.159.6",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
package/src/router.ts CHANGED
@@ -1070,6 +1070,7 @@ export class RouterCore<
1070
1070
  let processRouteTreeResult: ProcessRouteTreeResult<TRouteTree>
1071
1071
  if (
1072
1072
  (isServer ?? this.isServer) &&
1073
+ process.env.NODE_ENV !== 'development' &&
1073
1074
  globalThis.__TSR_CACHE__ &&
1074
1075
  globalThis.__TSR_CACHE__.routeTree === this.routeTree
1075
1076
  ) {
@@ -1082,6 +1083,7 @@ export class RouterCore<
1082
1083
  // only cache if nothing else is cached yet
1083
1084
  if (
1084
1085
  (isServer ?? this.isServer) &&
1086
+ process.env.NODE_ENV !== 'development' &&
1085
1087
  globalThis.__TSR_CACHE__ === undefined
1086
1088
  ) {
1087
1089
  globalThis.__TSR_CACHE__ = {