@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/build/cjs/router.js +6 -9
- package/build/cjs/router.js.map +1 -1
- package/build/esm/index.js +6 -9
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +123 -123
- package/build/types/router.d.ts +0 -1
- package/build/umd/index.development.js +6 -9
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +6 -10
package/package.json
CHANGED
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.
|
|
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.
|
|
1849
|
+
return this.navigate({
|
|
1850
|
+
fromCurrent: true,
|
|
1851
|
+
replace: true,
|
|
1852
|
+
search: true,
|
|
1853
|
+
} as any)
|
|
1858
1854
|
}
|
|
1859
1855
|
}
|
|
1860
1856
|
}
|