@tanstack/router-core 0.0.1-beta.10 → 0.0.1-beta.11
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/build/cjs/packages/router-core/src/router.js +5 -10
- package/build/cjs/packages/router-core/src/router.js.map +1 -1
- package/build/esm/index.js +5 -10
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +130 -130
- package/build/umd/index.development.js +5 -10
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -1
- package/src/router.ts +4 -12
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/router-core",
|
|
3
3
|
"author": "Tanner Linsley",
|
|
4
|
-
"version": "0.0.1-beta.
|
|
4
|
+
"version": "0.0.1-beta.11",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "tanstack/router",
|
|
7
7
|
"homepage": "https://tanstack.com/router",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"build/**",
|
|
34
34
|
"src"
|
|
35
35
|
],
|
|
36
|
+
"sideEffects": false,
|
|
36
37
|
"peerDependencies": {
|
|
37
38
|
"react": ">=16",
|
|
38
39
|
"react-dom": ">=16"
|
package/src/router.ts
CHANGED
|
@@ -589,6 +589,10 @@ export function createRouter<
|
|
|
589
589
|
}
|
|
590
590
|
})
|
|
591
591
|
|
|
592
|
+
const entering = matches.filter((d) => {
|
|
593
|
+
return !previousMatches.find((dd) => dd.matchId === d.matchId)
|
|
594
|
+
})
|
|
595
|
+
|
|
592
596
|
const now = Date.now()
|
|
593
597
|
|
|
594
598
|
exiting.forEach((d) => {
|
|
@@ -597,12 +601,6 @@ export function createRouter<
|
|
|
597
601
|
search: d.routeSearch,
|
|
598
602
|
})
|
|
599
603
|
|
|
600
|
-
// // Clear actions
|
|
601
|
-
// if (d.action) {
|
|
602
|
-
// d.action.current = undefined
|
|
603
|
-
// d.action.submissions = []
|
|
604
|
-
// }
|
|
605
|
-
|
|
606
604
|
// Clear idle error states when match leaves
|
|
607
605
|
if (d.status === 'error' && !d.isFetching) {
|
|
608
606
|
d.status = 'idle'
|
|
@@ -627,10 +625,6 @@ export function createRouter<
|
|
|
627
625
|
})
|
|
628
626
|
})
|
|
629
627
|
|
|
630
|
-
const entering = matches.filter((d) => {
|
|
631
|
-
return !previousMatches.find((dd) => dd.matchId === d.matchId)
|
|
632
|
-
})
|
|
633
|
-
|
|
634
628
|
entering.forEach((d) => {
|
|
635
629
|
d.__.onExit = d.options.onMatch?.({
|
|
636
630
|
params: d.params,
|
|
@@ -639,8 +633,6 @@ export function createRouter<
|
|
|
639
633
|
delete router.matchCache[d.matchId]
|
|
640
634
|
})
|
|
641
635
|
|
|
642
|
-
// router.notify()
|
|
643
|
-
|
|
644
636
|
if (router.startedLoadingAt !== id) {
|
|
645
637
|
// Ignore side-effects of match loading
|
|
646
638
|
return
|