@tanstack/react-router 1.92.3 → 1.92.6

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.
@@ -1,5 +1,5 @@
1
1
  import { createMemoryHistory, createBrowserHistory, parseHref } from "@tanstack/history";
2
- import { Store } from "@tanstack/react-store";
2
+ import { Store, batch } from "@tanstack/react-store";
3
3
  import invariant from "tiny-invariant";
4
4
  import warning from "tiny-warning";
5
5
  import { rootRouteId } from "./root.js";
@@ -630,7 +630,7 @@ class Router {
630
630
  const pathChanged = prevLocation.pathname !== next.pathname;
631
631
  this.cancelMatches();
632
632
  let pendingMatches;
633
- this.__store.batch(() => {
633
+ batch(() => {
634
634
  pendingMatches = this.matchRoutes(next);
635
635
  this.__store.setState((s) => ({
636
636
  ...s,
@@ -669,7 +669,7 @@ class Router {
669
669
  let exitingMatches;
670
670
  let enteringMatches;
671
671
  let stayingMatches;
672
- this.__store.batch(() => {
672
+ batch(() => {
673
673
  this.__store.setState((s) => {
674
674
  const previousMatches = s.matches;
675
675
  const newMatches = s.pendingMatches || s.matches;
@@ -1276,7 +1276,7 @@ class Router {
1276
1276
  ...activeMatchIds,
1277
1277
  ...this.state.cachedMatches.map((d) => d.id)
1278
1278
  ]);
1279
- this.__store.batch(() => {
1279
+ batch(() => {
1280
1280
  matches.forEach((match) => {
1281
1281
  if (!loadedMatchIds.has(match.id)) {
1282
1282
  this.__store.setState((s) => ({