@tanstack/router-core 0.0.1-beta.53 → 0.0.1-beta.54

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@tanstack/router-core",
3
3
  "author": "Tanner Linsley",
4
- "version": "0.0.1-beta.53",
4
+ "version": "0.0.1-beta.54",
5
5
  "license": "MIT",
6
6
  "repository": "tanstack/router",
7
7
  "homepage": "https://tanstack.com/router",
package/src/router.ts CHANGED
@@ -870,8 +870,7 @@ export class Router<
870
870
  // If this `to` is a valid external URL, return
871
871
  // null for LinkUtils
872
872
  const toString = String(to)
873
- const fromString = String(from)
874
-
873
+ const fromString = typeof from === 'undefined' ? from : String(from)
875
874
  let isExternal
876
875
 
877
876
  try {