@tanstack/router-core 0.0.1-beta.175 → 0.0.1-beta.177

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.175",
4
+ "version": "0.0.1-beta.177",
5
5
  "license": "MIT",
6
6
  "repository": "tanstack/router",
7
7
  "homepage": "https://tanstack.com/router",
package/src/router.ts CHANGED
@@ -445,7 +445,7 @@ export class Router<
445
445
 
446
446
  #onFocus = () => {
447
447
  if (this.options.refetchOnWindowFocus ?? true) {
448
- this.reload()
448
+ this.invalidate()
449
449
  }
450
450
  }
451
451
 
@@ -974,9 +974,6 @@ export class Router<
974
974
  preloadMaxAge: 0,
975
975
  }))
976
976
  })
977
- } else {
978
- // If we're preloading, clean preload matches before we try and use them
979
- this.cleanMatches()
980
977
  }
981
978
 
982
979
  let firstBadMatchIndex: number | undefined
@@ -1157,14 +1154,6 @@ export class Router<
1157
1154
  await Promise.all(matchPromises)
1158
1155
  }
1159
1156
 
1160
- reload = () => {
1161
- return this.navigate({
1162
- fromCurrent: true,
1163
- replace: true,
1164
- search: true,
1165
- } as any)
1166
- }
1167
-
1168
1157
  resolvePath = (from: string, path: string) => {
1169
1158
  return resolvePath(this.basepath!, from, cleanPath(path))
1170
1159
  }
@@ -1857,7 +1846,11 @@ export class Router<
1857
1846
  }
1858
1847
 
1859
1848
  if (opts?.reload ?? true) {
1860
- return this.reload()
1849
+ return this.navigate({
1850
+ fromCurrent: true,
1851
+ replace: true,
1852
+ search: true,
1853
+ } as any)
1861
1854
  }
1862
1855
  }
1863
1856
  }