@tanstack/react-router 1.92.1 → 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.
- package/dist/cjs/router.cjs +3 -3
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/cjs/transformer.cjs +88 -25
- package/dist/cjs/transformer.cjs.map +1 -1
- package/dist/cjs/transformer.d.cts +2 -0
- package/dist/esm/router.js +4 -4
- package/dist/esm/router.js.map +1 -1
- package/dist/esm/transformer.d.ts +2 -0
- package/dist/esm/transformer.js +88 -25
- package/dist/esm/transformer.js.map +1 -1
- package/package.json +2 -2
- package/src/router.ts +4 -4
- package/src/transformer.ts +105 -26
package/dist/cjs/router.cjs
CHANGED
|
@@ -632,7 +632,7 @@ class Router {
|
|
|
632
632
|
const pathChanged = prevLocation.pathname !== next.pathname;
|
|
633
633
|
this.cancelMatches();
|
|
634
634
|
let pendingMatches;
|
|
635
|
-
|
|
635
|
+
reactStore.batch(() => {
|
|
636
636
|
pendingMatches = this.matchRoutes(next);
|
|
637
637
|
this.__store.setState((s) => ({
|
|
638
638
|
...s,
|
|
@@ -671,7 +671,7 @@ class Router {
|
|
|
671
671
|
let exitingMatches;
|
|
672
672
|
let enteringMatches;
|
|
673
673
|
let stayingMatches;
|
|
674
|
-
|
|
674
|
+
reactStore.batch(() => {
|
|
675
675
|
this.__store.setState((s) => {
|
|
676
676
|
const previousMatches = s.matches;
|
|
677
677
|
const newMatches = s.pendingMatches || s.matches;
|
|
@@ -1278,7 +1278,7 @@ class Router {
|
|
|
1278
1278
|
...activeMatchIds,
|
|
1279
1279
|
...this.state.cachedMatches.map((d) => d.id)
|
|
1280
1280
|
]);
|
|
1281
|
-
|
|
1281
|
+
reactStore.batch(() => {
|
|
1282
1282
|
matches.forEach((match) => {
|
|
1283
1283
|
if (!loadedMatchIds.has(match.id)) {
|
|
1284
1284
|
this.__store.setState((s) => ({
|