@tanstack/router-core 1.121.27 → 1.121.34

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.
@@ -169,6 +169,7 @@ class RouterCore {
169
169
  if (__tempLocation && (!__tempKey || __tempKey === this.tempLocationKey)) {
170
170
  const parsedTempLocation = parse(__tempLocation);
171
171
  parsedTempLocation.state.key = location.state.key;
172
+ parsedTempLocation.state.__TSR_key = location.state.__TSR_key;
172
173
  delete parsedTempLocation.state.__tempLocation;
173
174
  return {
174
175
  ...parsedTempLocation,
@@ -244,7 +245,7 @@ class RouterCore {
244
245
  }
245
246
  const fromSearch = lastMatch.search;
246
247
  const fromParams = { ...lastMatch.params };
247
- const nextTo = dest.to ? this.resolvePathWithBase(fromPath, `${dest.to}`) : fromPath;
248
+ const nextTo = dest.to ? this.resolvePathWithBase(fromPath, `${dest.to}`) : this.resolvePathWithBase(fromPath, ".");
248
249
  let nextParams = (dest.params ?? true) === true ? fromParams : {
249
250
  ...fromParams,
250
251
  ...utils.functionalUpdate(dest.params, fromParams)
@@ -362,6 +363,8 @@ class RouterCore {
362
363
  const isSameState = () => {
363
364
  const ignoredProps = [
364
365
  "key",
366
+ // TODO: Remove in v2 - use __TSR_key instead
367
+ "__TSR_key",
365
368
  "__TSR_index",
366
369
  "__hashScrollIntoViewOptions"
367
370
  ];
@@ -396,7 +399,9 @@ class RouterCore {
396
399
  ...nextHistory.state,
397
400
  __tempKey: void 0,
398
401
  __tempLocation: void 0,
402
+ __TSR_key: void 0,
399
403
  key: void 0
404
+ // TODO: Remove in v2 - use __TSR_key instead
400
405
  }
401
406
  }
402
407
  }