@tanstack/router-core 0.0.1-beta.49 → 0.0.1-beta.50
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 +1 -10
- package/build/cjs/router.js.map +1 -1
- package/build/esm/index.js +1 -10
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +148 -148
- package/build/umd/index.development.js +1 -10
- 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 +1 -14
|
@@ -972,7 +972,7 @@
|
|
|
972
972
|
parseSearch: options?.parseSearch ?? defaultParseSearch,
|
|
973
973
|
fetchServerDataFn: options?.fetchServerDataFn ?? defaultFetchServerDataFn
|
|
974
974
|
};
|
|
975
|
-
this.history = this.options?.history ??
|
|
975
|
+
this.history = this.options?.history ?? createBrowserHistory();
|
|
976
976
|
this.store = createStore(getInitialRouterState());
|
|
977
977
|
this.basepath = '';
|
|
978
978
|
this.update(options);
|
|
@@ -1608,15 +1608,6 @@
|
|
|
1608
1608
|
state
|
|
1609
1609
|
} = this.history.location;
|
|
1610
1610
|
const parsedSearch = this.options.parseSearch(search);
|
|
1611
|
-
console.log({
|
|
1612
|
-
pathname: pathname,
|
|
1613
|
-
searchStr: search,
|
|
1614
|
-
search: replaceEqualDeep(previousLocation?.search, parsedSearch),
|
|
1615
|
-
hash: hash.split('#').reverse()[0] ?? '',
|
|
1616
|
-
href: `${pathname}${search}${hash}`,
|
|
1617
|
-
state: state,
|
|
1618
|
-
key: state?.key || '__init__'
|
|
1619
|
-
});
|
|
1620
1611
|
return {
|
|
1621
1612
|
pathname: pathname,
|
|
1622
1613
|
searchStr: search,
|