@tanstack/react-router 1.1.1 → 1.1.3

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.
@@ -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) : 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
  };