@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/build/cjs/router.js +6 -12
- package/build/cjs/router.js.map +1 -1
- package/build/esm/index.js +6 -12
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +124 -124
- package/build/types/router.d.ts +0 -1
- package/build/umd/index.development.js +6 -12
- 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 -13
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
|
|
|
@@ -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.
|
|
1849
|
+
return this.navigate({
|
|
1850
|
+
fromCurrent: true,
|
|
1851
|
+
replace: true,
|
|
1852
|
+
search: true,
|
|
1853
|
+
} as any)
|
|
1861
1854
|
}
|
|
1862
1855
|
}
|
|
1863
1856
|
}
|