@tanstack/router-core 0.0.1-beta.184 → 0.0.1-beta.185
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/history.js +1 -1
- package/build/cjs/history.js.map +1 -1
- package/build/cjs/router.js.map +1 -1
- package/build/esm/index.js +1 -1
- 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/history.d.ts +1 -1
- package/build/umd/index.development.js +1 -1
- 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/history.ts +2 -2
- package/src/router.ts +1 -4
package/build/esm/index.js
CHANGED
|
@@ -120,7 +120,7 @@ function createHistory(opts) {
|
|
|
120
120
|
function createBrowserHistory(opts) {
|
|
121
121
|
const getHref = opts?.getHref ?? (() => `${window.location.pathname}${window.location.search}${window.location.hash}`);
|
|
122
122
|
const createHref = opts?.createHref ?? (path => path);
|
|
123
|
-
const getLocation = () => parseLocation(getHref(), history.state);
|
|
123
|
+
const getLocation = () => parseLocation(getHref(), window.history.state);
|
|
124
124
|
return createHistory({
|
|
125
125
|
getLocation,
|
|
126
126
|
subscriber: onUpdate => {
|