@tanstack/react-router 1.1.1 → 1.1.2
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 +2 -2
- package/build/cjs/router.js.map +1 -1
- package/build/esm/index.js +2 -2
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +352 -352
- package/build/umd/index.development.js +2 -2
- 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 +2 -2
- package/src/router.ts +2 -2
|
@@ -2393,7 +2393,7 @@
|
|
|
2393
2393
|
const postFilteredSearch = postSearchFilters?.length ? postSearchFilters.reduce((prev, next) => next(prev), destSearch) : destSearch;
|
|
2394
2394
|
const search = replaceEqualDeep(fromSearch, postFilteredSearch);
|
|
2395
2395
|
const searchStr = this.options.stringifySearch(search);
|
|
2396
|
-
const hash = dest.hash === true ? from.hash : dest.hash ? functionalUpdate(dest.hash, from.hash) :
|
|
2396
|
+
const hash = dest.hash === true ? from.hash : dest.hash ? functionalUpdate(dest.hash, from.hash) : undefined;
|
|
2397
2397
|
const hashStr = hash ? `#${hash}` : '';
|
|
2398
2398
|
let nextState = dest.state === true ? from.state : dest.state ? functionalUpdate(dest.state, from.state) : from.state;
|
|
2399
2399
|
nextState = replaceEqualDeep(from.state, nextState);
|
|
@@ -2402,7 +2402,7 @@
|
|
|
2402
2402
|
search,
|
|
2403
2403
|
searchStr,
|
|
2404
2404
|
state: nextState,
|
|
2405
|
-
hash,
|
|
2405
|
+
hash: hash ?? '',
|
|
2406
2406
|
href: `${pathname}${searchStr}${hashStr}`,
|
|
2407
2407
|
unmaskOnReload: dest.unmaskOnReload
|
|
2408
2408
|
};
|