@tanstack/react-router 1.89.2 → 1.90.0

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.
@@ -43,6 +43,7 @@ export { defaultParseSearch, defaultStringifySearch, parseSearchWith, stringifyS
43
43
  export type { SearchSerializer, SearchParser } from './searchParams.cjs';
44
44
  export { defaultTransformer } from './transformer.cjs';
45
45
  export type { RouterTransformer, TransformerParse, TransformerStringify, DefaultTransformerParse, DefaultTransformerStringify, } from './transformer.cjs';
46
+ export type { UseBlockerOpts, ShouldBlockFn } from './useBlocker.cjs';
46
47
  export { useBlocker, Block } from './useBlocker.cjs';
47
48
  export { useNavigate, Navigate } from './useNavigate.cjs';
48
49
  export type { UseNavigateResult } from './useNavigate.cjs';
@@ -218,7 +218,7 @@ class Router {
218
218
  }
219
219
  });
220
220
  };
221
- this.parseLocation = (previousLocation) => {
221
+ this.parseLocation = (previousLocation, locationToParse) => {
222
222
  const parse = ({
223
223
  pathname,
224
224
  search,
@@ -236,7 +236,7 @@ class Router {
236
236
  state: utils.replaceEqualDeep(previousLocation == null ? void 0 : previousLocation.state, state)
237
237
  };
238
238
  };
239
- const location = parse(this.history.location);
239
+ const location = parse(locationToParse ?? this.history.location);
240
240
  const { __tempLocation, __tempKey } = location.state;
241
241
  if (__tempLocation && (!__tempKey || __tempKey === this.tempLocationKey)) {
242
242
  const parsedTempLocation = parse(__tempLocation);