@tanstack/react-router 0.0.1-beta.32 → 0.0.1-beta.33

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.
@@ -4024,7 +4024,7 @@ var drawChart = (function (exports) {
4024
4024
  </script>
4025
4025
  <script>
4026
4026
  /*<!--*/
4027
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"uid":"7bea-59","name":"\u0000rollupPluginBabelHelpers.js"},{"name":"node_modules/.pnpm","children":[{"name":"@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js","uid":"7bea-61"},{"name":"history@5.3.0/node_modules/history/index.js","uid":"7bea-63"},{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"7bea-65"}]},{"name":"packages","children":[{"name":"router-core/build/esm/index.js","uid":"7bea-67"},{"name":"react-router/src/index.tsx","uid":"7bea-69"}]}]}],"isRoot":true},"nodeParts":{"7bea-59":{"renderedLength":793,"gzipLength":363,"brotliLength":0,"mainUid":"7bea-58"},"7bea-61":{"renderedLength":435,"gzipLength":241,"brotliLength":0,"mainUid":"7bea-60"},"7bea-63":{"renderedLength":20630,"gzipLength":3800,"brotliLength":0,"mainUid":"7bea-62"},"7bea-65":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"7bea-64"},"7bea-67":{"renderedLength":54705,"gzipLength":12303,"brotliLength":0,"mainUid":"7bea-66"},"7bea-69":{"renderedLength":14166,"gzipLength":3535,"brotliLength":0,"mainUid":"7bea-68"}},"nodeMetas":{"7bea-58":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"7bea-59"},"imported":[],"importedBy":[{"uid":"7bea-68"}]},"7bea-60":{"id":"/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js","moduleParts":{"index.production.js":"7bea-61"},"imported":[],"importedBy":[{"uid":"7bea-62"}]},"7bea-62":{"id":"/node_modules/.pnpm/history@5.3.0/node_modules/history/index.js","moduleParts":{"index.production.js":"7bea-63"},"imported":[{"uid":"7bea-60"}],"importedBy":[{"uid":"7bea-66"}]},"7bea-64":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"7bea-65"},"imported":[],"importedBy":[{"uid":"7bea-66"}]},"7bea-66":{"id":"/packages/router-core/build/esm/index.js","moduleParts":{"index.production.js":"7bea-67"},"imported":[{"uid":"7bea-62"},{"uid":"7bea-64"}],"importedBy":[{"uid":"7bea-68"}]},"7bea-68":{"id":"/packages/react-router/src/index.tsx","moduleParts":{"index.production.js":"7bea-69"},"imported":[{"uid":"7bea-58"},{"uid":"7bea-70"},{"uid":"7bea-71"},{"uid":"7bea-66"}],"importedBy":[],"isEntry":true},"7bea-70":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"7bea-68"}],"isExternal":true},"7bea-71":{"id":"use-sync-external-store/shim","moduleParts":{},"imported":[],"importedBy":[{"uid":"7bea-68"}],"isExternal":true}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
4027
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"uid":"5f6f-59","name":"\u0000rollupPluginBabelHelpers.js"},{"name":"node_modules/.pnpm","children":[{"name":"@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js","uid":"5f6f-61"},{"name":"history@5.3.0/node_modules/history/index.js","uid":"5f6f-63"},{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"5f6f-65"}]},{"name":"packages","children":[{"name":"router-core/build/esm/index.js","uid":"5f6f-67"},{"name":"react-router/src/index.tsx","uid":"5f6f-69"}]}]}],"isRoot":true},"nodeParts":{"5f6f-59":{"renderedLength":793,"gzipLength":363,"brotliLength":0,"mainUid":"5f6f-58"},"5f6f-61":{"renderedLength":435,"gzipLength":241,"brotliLength":0,"mainUid":"5f6f-60"},"5f6f-63":{"renderedLength":20630,"gzipLength":3800,"brotliLength":0,"mainUid":"5f6f-62"},"5f6f-65":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"5f6f-64"},"5f6f-67":{"renderedLength":54818,"gzipLength":12329,"brotliLength":0,"mainUid":"5f6f-66"},"5f6f-69":{"renderedLength":14166,"gzipLength":3535,"brotliLength":0,"mainUid":"5f6f-68"}},"nodeMetas":{"5f6f-58":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"5f6f-59"},"imported":[],"importedBy":[{"uid":"5f6f-68"}]},"5f6f-60":{"id":"/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js","moduleParts":{"index.production.js":"5f6f-61"},"imported":[],"importedBy":[{"uid":"5f6f-62"}]},"5f6f-62":{"id":"/node_modules/.pnpm/history@5.3.0/node_modules/history/index.js","moduleParts":{"index.production.js":"5f6f-63"},"imported":[{"uid":"5f6f-60"}],"importedBy":[{"uid":"5f6f-66"}]},"5f6f-64":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"5f6f-65"},"imported":[],"importedBy":[{"uid":"5f6f-66"}]},"5f6f-66":{"id":"/packages/router-core/build/esm/index.js","moduleParts":{"index.production.js":"5f6f-67"},"imported":[{"uid":"5f6f-62"},{"uid":"5f6f-64"}],"importedBy":[{"uid":"5f6f-68"}]},"5f6f-68":{"id":"/packages/react-router/src/index.tsx","moduleParts":{"index.production.js":"5f6f-69"},"imported":[{"uid":"5f6f-58"},{"uid":"5f6f-70"},{"uid":"5f6f-71"},{"uid":"5f6f-66"}],"importedBy":[],"isEntry":true},"5f6f-70":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"5f6f-68"}],"isExternal":true},"5f6f-71":{"id":"use-sync-external-store/shim","moduleParts":{},"imported":[],"importedBy":[{"uid":"5f6f-68"}],"isExternal":true}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
4028
4028
 
4029
4029
  const run = () => {
4030
4030
  const width = window.innerWidth;
@@ -7,7 +7,7 @@
7
7
  "name": "index.production.js",
8
8
  "children": [
9
9
  {
10
- "uid": "7bea-73",
10
+ "uid": "5f6f-73",
11
11
  "name": "\u0000rollupPluginBabelHelpers.js"
12
12
  },
13
13
  {
@@ -15,15 +15,15 @@
15
15
  "children": [
16
16
  {
17
17
  "name": "@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js",
18
- "uid": "7bea-75"
18
+ "uid": "5f6f-75"
19
19
  },
20
20
  {
21
21
  "name": "history@5.3.0/node_modules/history/index.js",
22
- "uid": "7bea-77"
22
+ "uid": "5f6f-77"
23
23
  },
24
24
  {
25
25
  "name": "tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
26
- "uid": "7bea-79"
26
+ "uid": "5f6f-79"
27
27
  }
28
28
  ]
29
29
  },
@@ -32,11 +32,11 @@
32
32
  "children": [
33
33
  {
34
34
  "name": "router-core/build/esm/index.js",
35
- "uid": "7bea-81"
35
+ "uid": "5f6f-81"
36
36
  },
37
37
  {
38
38
  "name": "react-router/src/index.tsx",
39
- "uid": "7bea-83"
39
+ "uid": "5f6f-83"
40
40
  }
41
41
  ]
42
42
  }
@@ -46,155 +46,155 @@
46
46
  "isRoot": true
47
47
  },
48
48
  "nodeParts": {
49
- "7bea-73": {
49
+ "5f6f-73": {
50
50
  "renderedLength": 793,
51
51
  "gzipLength": 363,
52
52
  "brotliLength": 0,
53
- "mainUid": "7bea-72"
53
+ "mainUid": "5f6f-72"
54
54
  },
55
- "7bea-75": {
55
+ "5f6f-75": {
56
56
  "renderedLength": 435,
57
57
  "gzipLength": 241,
58
58
  "brotliLength": 0,
59
- "mainUid": "7bea-74"
59
+ "mainUid": "5f6f-74"
60
60
  },
61
- "7bea-77": {
61
+ "5f6f-77": {
62
62
  "renderedLength": 20630,
63
63
  "gzipLength": 3800,
64
64
  "brotliLength": 0,
65
- "mainUid": "7bea-76"
65
+ "mainUid": "5f6f-76"
66
66
  },
67
- "7bea-79": {
67
+ "5f6f-79": {
68
68
  "renderedLength": 181,
69
69
  "gzipLength": 129,
70
70
  "brotliLength": 0,
71
- "mainUid": "7bea-78"
71
+ "mainUid": "5f6f-78"
72
72
  },
73
- "7bea-81": {
74
- "renderedLength": 54705,
75
- "gzipLength": 12303,
73
+ "5f6f-81": {
74
+ "renderedLength": 54818,
75
+ "gzipLength": 12329,
76
76
  "brotliLength": 0,
77
- "mainUid": "7bea-80"
77
+ "mainUid": "5f6f-80"
78
78
  },
79
- "7bea-83": {
79
+ "5f6f-83": {
80
80
  "renderedLength": 14166,
81
81
  "gzipLength": 3535,
82
82
  "brotliLength": 0,
83
- "mainUid": "7bea-82"
83
+ "mainUid": "5f6f-82"
84
84
  }
85
85
  },
86
86
  "nodeMetas": {
87
- "7bea-72": {
87
+ "5f6f-72": {
88
88
  "id": "\u0000rollupPluginBabelHelpers.js",
89
89
  "moduleParts": {
90
- "index.production.js": "7bea-73"
90
+ "index.production.js": "5f6f-73"
91
91
  },
92
92
  "imported": [],
93
93
  "importedBy": [
94
94
  {
95
- "uid": "7bea-82"
95
+ "uid": "5f6f-82"
96
96
  }
97
97
  ]
98
98
  },
99
- "7bea-74": {
99
+ "5f6f-74": {
100
100
  "id": "/node_modules/.pnpm/@babel+runtime@7.20.6/node_modules/@babel/runtime/helpers/esm/extends.js",
101
101
  "moduleParts": {
102
- "index.production.js": "7bea-75"
102
+ "index.production.js": "5f6f-75"
103
103
  },
104
104
  "imported": [],
105
105
  "importedBy": [
106
106
  {
107
- "uid": "7bea-76"
107
+ "uid": "5f6f-76"
108
108
  }
109
109
  ]
110
110
  },
111
- "7bea-76": {
111
+ "5f6f-76": {
112
112
  "id": "/node_modules/.pnpm/history@5.3.0/node_modules/history/index.js",
113
113
  "moduleParts": {
114
- "index.production.js": "7bea-77"
114
+ "index.production.js": "5f6f-77"
115
115
  },
116
116
  "imported": [
117
117
  {
118
- "uid": "7bea-74"
118
+ "uid": "5f6f-74"
119
119
  }
120
120
  ],
121
121
  "importedBy": [
122
122
  {
123
- "uid": "7bea-80"
123
+ "uid": "5f6f-80"
124
124
  }
125
125
  ]
126
126
  },
127
- "7bea-78": {
127
+ "5f6f-78": {
128
128
  "id": "/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
129
129
  "moduleParts": {
130
- "index.production.js": "7bea-79"
130
+ "index.production.js": "5f6f-79"
131
131
  },
132
132
  "imported": [],
133
133
  "importedBy": [
134
134
  {
135
- "uid": "7bea-80"
135
+ "uid": "5f6f-80"
136
136
  }
137
137
  ]
138
138
  },
139
- "7bea-80": {
139
+ "5f6f-80": {
140
140
  "id": "/packages/router-core/build/esm/index.js",
141
141
  "moduleParts": {
142
- "index.production.js": "7bea-81"
142
+ "index.production.js": "5f6f-81"
143
143
  },
144
144
  "imported": [
145
145
  {
146
- "uid": "7bea-76"
146
+ "uid": "5f6f-76"
147
147
  },
148
148
  {
149
- "uid": "7bea-78"
149
+ "uid": "5f6f-78"
150
150
  }
151
151
  ],
152
152
  "importedBy": [
153
153
  {
154
- "uid": "7bea-82"
154
+ "uid": "5f6f-82"
155
155
  }
156
156
  ]
157
157
  },
158
- "7bea-82": {
158
+ "5f6f-82": {
159
159
  "id": "/packages/react-router/src/index.tsx",
160
160
  "moduleParts": {
161
- "index.production.js": "7bea-83"
161
+ "index.production.js": "5f6f-83"
162
162
  },
163
163
  "imported": [
164
164
  {
165
- "uid": "7bea-72"
165
+ "uid": "5f6f-72"
166
166
  },
167
167
  {
168
- "uid": "7bea-84"
168
+ "uid": "5f6f-84"
169
169
  },
170
170
  {
171
- "uid": "7bea-85"
171
+ "uid": "5f6f-85"
172
172
  },
173
173
  {
174
- "uid": "7bea-80"
174
+ "uid": "5f6f-80"
175
175
  }
176
176
  ],
177
177
  "importedBy": [],
178
178
  "isEntry": true
179
179
  },
180
- "7bea-84": {
180
+ "5f6f-84": {
181
181
  "id": "react",
182
182
  "moduleParts": {},
183
183
  "imported": [],
184
184
  "importedBy": [
185
185
  {
186
- "uid": "7bea-82"
186
+ "uid": "5f6f-82"
187
187
  }
188
188
  ],
189
189
  "isExternal": true
190
190
  },
191
- "7bea-85": {
191
+ "5f6f-85": {
192
192
  "id": "use-sync-external-store/shim",
193
193
  "moduleParts": {},
194
194
  "imported": [],
195
195
  "importedBy": [
196
196
  {
197
- "uid": "7bea-82"
197
+ "uid": "5f6f-82"
198
198
  }
199
199
  ],
200
200
  "isExternal": true
@@ -2001,14 +2001,15 @@
2001
2001
  },
2002
2002
  loadMatches: async (resolvedMatches, loaderOpts) => {
2003
2003
  const matchPromises = resolvedMatches.map(async match => {
2004
+ var _search$__data;
2004
2005
  // Validate the match (loads search params etc)
2005
2006
  match.__.validate();
2006
- match.load(loaderOpts);
2007
2007
  const search = match.search;
2008
- if (search.__data && search.__data.matchId !== match.matchId) {
2008
+ if ((_search$__data = search.__data) != null && _search$__data.matchId && search.__data.matchId !== match.matchId) {
2009
2009
  return;
2010
2010
  }
2011
- if (match.__.loadPromise) {
2011
+ match.load(loaderOpts);
2012
+ if (match.status !== 'success' && match.__.loadPromise) {
2012
2013
  // Wait for the first sign of activity from the match
2013
2014
  await match.__.loadPromise;
2014
2015
  }