@tanstack/router-core 0.0.1-beta.176 → 0.0.1-beta.177

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.
@@ -899,7 +899,7 @@
899
899
  };
900
900
  #onFocus = () => {
901
901
  if (this.options.refetchOnWindowFocus ?? true) {
902
- this.reload();
902
+ this.invalidate();
903
903
  }
904
904
  };
905
905
  update = opts => {
@@ -1418,13 +1418,6 @@
1418
1418
  });
1419
1419
  await Promise.all(matchPromises);
1420
1420
  };
1421
- reload = () => {
1422
- return this.navigate({
1423
- fromCurrent: true,
1424
- replace: true,
1425
- search: true
1426
- });
1427
- };
1428
1421
  resolvePath = (from, path) => {
1429
1422
  return resolvePath(this.basepath, from, cleanPath(path));
1430
1423
  };
@@ -1902,7 +1895,11 @@
1902
1895
  });
1903
1896
  }
1904
1897
  if (opts?.reload ?? true) {
1905
- return this.reload();
1898
+ return this.navigate({
1899
+ fromCurrent: true,
1900
+ replace: true,
1901
+ search: true
1902
+ });
1906
1903
  }
1907
1904
  };
1908
1905
  }