@tanstack/react-router 1.87.7 → 1.87.8

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/react-router",
3
- "version": "1.87.7",
3
+ "version": "1.87.8",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@ export function ScriptOnce({
21
21
  ? `console.info(\`Injected From Server:
22
22
  ${jsesc(children.toString(), { quotes: 'backtick' })}\`)`
23
23
  : '',
24
- '__TSR__.cleanScripts()',
24
+ 'if (__TSR__) __TSR__.cleanScripts()',
25
25
  ]
26
26
  .filter(Boolean)
27
27
  .join('\n'),
package/src/router.ts CHANGED
@@ -3041,7 +3041,7 @@ export class Router<
3041
3041
  ? `; console.info(\`Injected From Server:
3042
3042
  ${script}\`)`
3043
3043
  : ''
3044
- }; __TSR__.cleanScripts()</script>`,
3044
+ }; if (__TSR__) __TSR__.cleanScripts()</script>`,
3045
3045
  )
3046
3046
  }
3047
3047