@tanstack/router-core 0.0.1-beta.176 → 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.176",
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
 
@@ -1154,14 +1154,6 @@ export class Router<
1154
1154
  await Promise.all(matchPromises)
1155
1155
  }
1156
1156
 
1157
- reload = () => {
1158
- return this.navigate({
1159
- fromCurrent: true,
1160
- replace: true,
1161
- search: true,
1162
- } as any)
1163
- }
1164
-
1165
1157
  resolvePath = (from: string, path: string) => {
1166
1158
  return resolvePath(this.basepath!, from, cleanPath(path))
1167
1159
  }
@@ -1854,7 +1846,11 @@ export class Router<
1854
1846
  }
1855
1847
 
1856
1848
  if (opts?.reload ?? true) {
1857
- return this.reload()
1849
+ return this.navigate({
1850
+ fromCurrent: true,
1851
+ replace: true,
1852
+ search: true,
1853
+ } as any)
1858
1854
  }
1859
1855
  }
1860
1856
  }