@tanstack/router-core 1.131.22 → 1.131.23

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.
@@ -249,10 +249,10 @@ class RouterCore {
249
249
  dest.from,
250
250
  void 0
251
251
  ).matchedRoutes;
252
- const matchedFrom = [...allCurrentLocationMatches].reverse().find((d) => {
252
+ const matchedFrom = utils.findLast(allCurrentLocationMatches, (d) => {
253
253
  return comparePaths(d.fullPath, fromPath);
254
254
  });
255
- const matchedCurrent = [...allFromMatches].reverse().find((d) => {
255
+ const matchedCurrent = utils.findLast(allFromMatches, (d) => {
256
256
  return comparePaths(d.fullPath, currentLocation.pathname);
257
257
  });
258
258
  if (!matchedFrom && !matchedCurrent) {