@tanstack/react-router 0.0.1-beta.178 → 0.0.1-beta.179
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/stats-html.html
CHANGED
|
@@ -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":[{"name":"node_modules/.pnpm","children":[{"name":"@tanstack+store@0.0.1/node_modules/@tanstack/store/build/esm/index.js","uid":"
|
|
4027
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"node_modules/.pnpm","children":[{"name":"@tanstack+store@0.0.1/node_modules/@tanstack/store/build/esm/index.js","uid":"4869-137"},{"name":"@tanstack+react-store@0.0.1/node_modules/@tanstack/react-store/build/esm/index.js","uid":"4869-139"},{"name":"tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","uid":"4869-141"},{"name":"tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","uid":"4869-143"}]},{"name":"packages","children":[{"name":"router-core/build/esm/index.js","uid":"4869-145"},{"name":"react-router/src","children":[{"uid":"4869-149","name":"react.tsx"},{"uid":"4869-151","name":"scroll-restoration.tsx"},{"uid":"4869-153","name":"awaited.tsx"},{"uid":"4869-155","name":"index.tsx"}]}]},{"uid":"4869-147","name":"\u0000rollupPluginBabelHelpers.js"}]}],"isRoot":true},"nodeParts":{"4869-137":{"renderedLength":1843,"gzipLength":644,"brotliLength":0,"mainUid":"4869-136"},"4869-139":{"renderedLength":1006,"gzipLength":479,"brotliLength":0,"mainUid":"4869-138"},"4869-141":{"renderedLength":181,"gzipLength":129,"brotliLength":0,"mainUid":"4869-140"},"4869-143":{"renderedLength":44,"gzipLength":62,"brotliLength":0,"mainUid":"4869-142"},"4869-145":{"renderedLength":64204,"gzipLength":15208,"brotliLength":0,"mainUid":"4869-144"},"4869-147":{"renderedLength":429,"gzipLength":238,"brotliLength":0,"mainUid":"4869-146"},"4869-149":{"renderedLength":17344,"gzipLength":3846,"brotliLength":0,"mainUid":"4869-148"},"4869-151":{"renderedLength":466,"gzipLength":228,"brotliLength":0,"mainUid":"4869-150"},"4869-153":{"renderedLength":641,"gzipLength":305,"brotliLength":0,"mainUid":"4869-152"},"4869-155":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"4869-154"}},"nodeMetas":{"4869-136":{"id":"/node_modules/.pnpm/@tanstack+store@0.0.1/node_modules/@tanstack/store/build/esm/index.js","moduleParts":{"index.production.js":"4869-137"},"imported":[],"importedBy":[{"uid":"4869-138"},{"uid":"4869-144"}]},"4869-138":{"id":"/node_modules/.pnpm/@tanstack+react-store@0.0.1/node_modules/@tanstack/react-store/build/esm/index.js","moduleParts":{"index.production.js":"4869-139"},"imported":[{"uid":"4869-156"},{"uid":"4869-136"}],"importedBy":[{"uid":"4869-154"},{"uid":"4869-148"}]},"4869-140":{"id":"/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js","moduleParts":{"index.production.js":"4869-141"},"imported":[],"importedBy":[{"uid":"4869-144"},{"uid":"4869-148"}]},"4869-142":{"id":"/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js","moduleParts":{"index.production.js":"4869-143"},"imported":[],"importedBy":[{"uid":"4869-144"},{"uid":"4869-148"}]},"4869-144":{"id":"/packages/router-core/build/esm/index.js","moduleParts":{"index.production.js":"4869-145"},"imported":[{"uid":"4869-140"},{"uid":"4869-142"},{"uid":"4869-136"}],"importedBy":[{"uid":"4869-154"},{"uid":"4869-148"},{"uid":"4869-150"},{"uid":"4869-152"}]},"4869-146":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{"index.production.js":"4869-147"},"imported":[],"importedBy":[{"uid":"4869-148"}]},"4869-148":{"id":"/packages/react-router/src/react.tsx","moduleParts":{"index.production.js":"4869-149"},"imported":[{"uid":"4869-146"},{"uid":"4869-157"},{"uid":"4869-138"},{"uid":"4869-140"},{"uid":"4869-142"},{"uid":"4869-144"}],"importedBy":[{"uid":"4869-154"},{"uid":"4869-150"},{"uid":"4869-152"}]},"4869-150":{"id":"/packages/react-router/src/scroll-restoration.tsx","moduleParts":{"index.production.js":"4869-151"},"imported":[{"uid":"4869-157"},{"uid":"4869-144"},{"uid":"4869-148"}],"importedBy":[{"uid":"4869-154"}]},"4869-152":{"id":"/packages/react-router/src/awaited.tsx","moduleParts":{"index.production.js":"4869-153"},"imported":[{"uid":"4869-144"},{"uid":"4869-148"}],"importedBy":[{"uid":"4869-154"}]},"4869-154":{"id":"/packages/react-router/src/index.tsx","moduleParts":{"index.production.js":"4869-155"},"imported":[{"uid":"4869-138"},{"uid":"4869-144"},{"uid":"4869-148"},{"uid":"4869-150"},{"uid":"4869-152"}],"importedBy":[],"isEntry":true},"4869-156":{"id":"use-sync-external-store/shim/with-selector","moduleParts":{},"imported":[],"importedBy":[{"uid":"4869-138"}],"isExternal":true},"4869-157":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"4869-148"},{"uid":"4869-150"}],"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;
|
package/build/stats-react.json
CHANGED
|
@@ -11,19 +11,19 @@
|
|
|
11
11
|
"children": [
|
|
12
12
|
{
|
|
13
13
|
"name": "@tanstack+store@0.0.1/node_modules/@tanstack/store/build/esm/index.js",
|
|
14
|
-
"uid": "
|
|
14
|
+
"uid": "4869-159"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "@tanstack+react-store@0.0.1/node_modules/@tanstack/react-store/build/esm/index.js",
|
|
18
|
-
"uid": "
|
|
18
|
+
"uid": "4869-161"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"name": "tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
|
|
22
|
-
"uid": "
|
|
22
|
+
"uid": "4869-163"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js",
|
|
26
|
-
"uid": "
|
|
26
|
+
"uid": "4869-165"
|
|
27
27
|
}
|
|
28
28
|
]
|
|
29
29
|
},
|
|
@@ -32,25 +32,25 @@
|
|
|
32
32
|
"children": [
|
|
33
33
|
{
|
|
34
34
|
"name": "router-core/build/esm/index.js",
|
|
35
|
-
"uid": "
|
|
35
|
+
"uid": "4869-167"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"name": "react-router/src",
|
|
39
39
|
"children": [
|
|
40
40
|
{
|
|
41
|
-
"uid": "
|
|
41
|
+
"uid": "4869-171",
|
|
42
42
|
"name": "react.tsx"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
"uid": "
|
|
45
|
+
"uid": "4869-173",
|
|
46
46
|
"name": "scroll-restoration.tsx"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
|
-
"uid": "
|
|
49
|
+
"uid": "4869-175",
|
|
50
50
|
"name": "awaited.tsx"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
"uid": "
|
|
53
|
+
"uid": "4869-177",
|
|
54
54
|
"name": "index.tsx"
|
|
55
55
|
}
|
|
56
56
|
]
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
|
-
"uid": "
|
|
61
|
+
"uid": "4869-169",
|
|
62
62
|
"name": "\u0000rollupPluginBabelHelpers.js"
|
|
63
63
|
}
|
|
64
64
|
]
|
|
@@ -67,302 +67,302 @@
|
|
|
67
67
|
"isRoot": true
|
|
68
68
|
},
|
|
69
69
|
"nodeParts": {
|
|
70
|
-
"
|
|
70
|
+
"4869-159": {
|
|
71
71
|
"renderedLength": 1843,
|
|
72
72
|
"gzipLength": 644,
|
|
73
73
|
"brotliLength": 0,
|
|
74
|
-
"mainUid": "
|
|
74
|
+
"mainUid": "4869-158"
|
|
75
75
|
},
|
|
76
|
-
"
|
|
76
|
+
"4869-161": {
|
|
77
77
|
"renderedLength": 1006,
|
|
78
78
|
"gzipLength": 479,
|
|
79
79
|
"brotliLength": 0,
|
|
80
|
-
"mainUid": "
|
|
80
|
+
"mainUid": "4869-160"
|
|
81
81
|
},
|
|
82
|
-
"
|
|
82
|
+
"4869-163": {
|
|
83
83
|
"renderedLength": 181,
|
|
84
84
|
"gzipLength": 129,
|
|
85
85
|
"brotliLength": 0,
|
|
86
|
-
"mainUid": "
|
|
86
|
+
"mainUid": "4869-162"
|
|
87
87
|
},
|
|
88
|
-
"
|
|
88
|
+
"4869-165": {
|
|
89
89
|
"renderedLength": 44,
|
|
90
90
|
"gzipLength": 62,
|
|
91
91
|
"brotliLength": 0,
|
|
92
|
-
"mainUid": "
|
|
92
|
+
"mainUid": "4869-164"
|
|
93
93
|
},
|
|
94
|
-
"
|
|
95
|
-
"renderedLength":
|
|
96
|
-
"gzipLength":
|
|
94
|
+
"4869-167": {
|
|
95
|
+
"renderedLength": 64204,
|
|
96
|
+
"gzipLength": 15208,
|
|
97
97
|
"brotliLength": 0,
|
|
98
|
-
"mainUid": "
|
|
98
|
+
"mainUid": "4869-166"
|
|
99
99
|
},
|
|
100
|
-
"
|
|
100
|
+
"4869-169": {
|
|
101
101
|
"renderedLength": 429,
|
|
102
102
|
"gzipLength": 238,
|
|
103
103
|
"brotliLength": 0,
|
|
104
|
-
"mainUid": "
|
|
104
|
+
"mainUid": "4869-168"
|
|
105
105
|
},
|
|
106
|
-
"
|
|
106
|
+
"4869-171": {
|
|
107
107
|
"renderedLength": 17344,
|
|
108
108
|
"gzipLength": 3846,
|
|
109
109
|
"brotliLength": 0,
|
|
110
|
-
"mainUid": "
|
|
110
|
+
"mainUid": "4869-170"
|
|
111
111
|
},
|
|
112
|
-
"
|
|
112
|
+
"4869-173": {
|
|
113
113
|
"renderedLength": 466,
|
|
114
114
|
"gzipLength": 228,
|
|
115
115
|
"brotliLength": 0,
|
|
116
|
-
"mainUid": "
|
|
116
|
+
"mainUid": "4869-172"
|
|
117
117
|
},
|
|
118
|
-
"
|
|
118
|
+
"4869-175": {
|
|
119
119
|
"renderedLength": 641,
|
|
120
120
|
"gzipLength": 305,
|
|
121
121
|
"brotliLength": 0,
|
|
122
|
-
"mainUid": "
|
|
122
|
+
"mainUid": "4869-174"
|
|
123
123
|
},
|
|
124
|
-
"
|
|
124
|
+
"4869-177": {
|
|
125
125
|
"renderedLength": 0,
|
|
126
126
|
"gzipLength": 0,
|
|
127
127
|
"brotliLength": 0,
|
|
128
|
-
"mainUid": "
|
|
128
|
+
"mainUid": "4869-176"
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
"nodeMetas": {
|
|
132
|
-
"
|
|
132
|
+
"4869-158": {
|
|
133
133
|
"id": "/node_modules/.pnpm/@tanstack+store@0.0.1/node_modules/@tanstack/store/build/esm/index.js",
|
|
134
134
|
"moduleParts": {
|
|
135
|
-
"index.production.js": "
|
|
135
|
+
"index.production.js": "4869-159"
|
|
136
136
|
},
|
|
137
137
|
"imported": [],
|
|
138
138
|
"importedBy": [
|
|
139
139
|
{
|
|
140
|
-
"uid": "
|
|
140
|
+
"uid": "4869-160"
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
|
-
"uid": "
|
|
143
|
+
"uid": "4869-166"
|
|
144
144
|
}
|
|
145
145
|
]
|
|
146
146
|
},
|
|
147
|
-
"
|
|
147
|
+
"4869-160": {
|
|
148
148
|
"id": "/node_modules/.pnpm/@tanstack+react-store@0.0.1/node_modules/@tanstack/react-store/build/esm/index.js",
|
|
149
149
|
"moduleParts": {
|
|
150
|
-
"index.production.js": "
|
|
150
|
+
"index.production.js": "4869-161"
|
|
151
151
|
},
|
|
152
152
|
"imported": [
|
|
153
153
|
{
|
|
154
|
-
"uid": "
|
|
154
|
+
"uid": "4869-178"
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
|
-
"uid": "
|
|
157
|
+
"uid": "4869-158"
|
|
158
158
|
}
|
|
159
159
|
],
|
|
160
160
|
"importedBy": [
|
|
161
161
|
{
|
|
162
|
-
"uid": "
|
|
162
|
+
"uid": "4869-176"
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
|
-
"uid": "
|
|
165
|
+
"uid": "4869-170"
|
|
166
166
|
}
|
|
167
167
|
]
|
|
168
168
|
},
|
|
169
|
-
"
|
|
169
|
+
"4869-162": {
|
|
170
170
|
"id": "/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
|
|
171
171
|
"moduleParts": {
|
|
172
|
-
"index.production.js": "
|
|
172
|
+
"index.production.js": "4869-163"
|
|
173
173
|
},
|
|
174
174
|
"imported": [],
|
|
175
175
|
"importedBy": [
|
|
176
176
|
{
|
|
177
|
-
"uid": "
|
|
177
|
+
"uid": "4869-166"
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
|
-
"uid": "
|
|
180
|
+
"uid": "4869-170"
|
|
181
181
|
}
|
|
182
182
|
]
|
|
183
183
|
},
|
|
184
|
-
"
|
|
184
|
+
"4869-164": {
|
|
185
185
|
"id": "/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js",
|
|
186
186
|
"moduleParts": {
|
|
187
|
-
"index.production.js": "
|
|
187
|
+
"index.production.js": "4869-165"
|
|
188
188
|
},
|
|
189
189
|
"imported": [],
|
|
190
190
|
"importedBy": [
|
|
191
191
|
{
|
|
192
|
-
"uid": "
|
|
192
|
+
"uid": "4869-166"
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
|
-
"uid": "
|
|
195
|
+
"uid": "4869-170"
|
|
196
196
|
}
|
|
197
197
|
]
|
|
198
198
|
},
|
|
199
|
-
"
|
|
199
|
+
"4869-166": {
|
|
200
200
|
"id": "/packages/router-core/build/esm/index.js",
|
|
201
201
|
"moduleParts": {
|
|
202
|
-
"index.production.js": "
|
|
202
|
+
"index.production.js": "4869-167"
|
|
203
203
|
},
|
|
204
204
|
"imported": [
|
|
205
205
|
{
|
|
206
|
-
"uid": "
|
|
206
|
+
"uid": "4869-162"
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
|
-
"uid": "
|
|
209
|
+
"uid": "4869-164"
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
|
-
"uid": "
|
|
212
|
+
"uid": "4869-158"
|
|
213
213
|
}
|
|
214
214
|
],
|
|
215
215
|
"importedBy": [
|
|
216
216
|
{
|
|
217
|
-
"uid": "
|
|
217
|
+
"uid": "4869-176"
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
|
-
"uid": "
|
|
220
|
+
"uid": "4869-170"
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
|
-
"uid": "
|
|
223
|
+
"uid": "4869-172"
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
|
-
"uid": "
|
|
226
|
+
"uid": "4869-174"
|
|
227
227
|
}
|
|
228
228
|
]
|
|
229
229
|
},
|
|
230
|
-
"
|
|
230
|
+
"4869-168": {
|
|
231
231
|
"id": "\u0000rollupPluginBabelHelpers.js",
|
|
232
232
|
"moduleParts": {
|
|
233
|
-
"index.production.js": "
|
|
233
|
+
"index.production.js": "4869-169"
|
|
234
234
|
},
|
|
235
235
|
"imported": [],
|
|
236
236
|
"importedBy": [
|
|
237
237
|
{
|
|
238
|
-
"uid": "
|
|
238
|
+
"uid": "4869-170"
|
|
239
239
|
}
|
|
240
240
|
]
|
|
241
241
|
},
|
|
242
|
-
"
|
|
242
|
+
"4869-170": {
|
|
243
243
|
"id": "/packages/react-router/src/react.tsx",
|
|
244
244
|
"moduleParts": {
|
|
245
|
-
"index.production.js": "
|
|
245
|
+
"index.production.js": "4869-171"
|
|
246
246
|
},
|
|
247
247
|
"imported": [
|
|
248
248
|
{
|
|
249
|
-
"uid": "
|
|
249
|
+
"uid": "4869-168"
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
|
-
"uid": "
|
|
252
|
+
"uid": "4869-179"
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
|
-
"uid": "
|
|
255
|
+
"uid": "4869-160"
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
|
-
"uid": "
|
|
258
|
+
"uid": "4869-162"
|
|
259
259
|
},
|
|
260
260
|
{
|
|
261
|
-
"uid": "
|
|
261
|
+
"uid": "4869-164"
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
|
-
"uid": "
|
|
264
|
+
"uid": "4869-166"
|
|
265
265
|
}
|
|
266
266
|
],
|
|
267
267
|
"importedBy": [
|
|
268
268
|
{
|
|
269
|
-
"uid": "
|
|
269
|
+
"uid": "4869-176"
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
|
-
"uid": "
|
|
272
|
+
"uid": "4869-172"
|
|
273
273
|
},
|
|
274
274
|
{
|
|
275
|
-
"uid": "
|
|
275
|
+
"uid": "4869-174"
|
|
276
276
|
}
|
|
277
277
|
]
|
|
278
278
|
},
|
|
279
|
-
"
|
|
279
|
+
"4869-172": {
|
|
280
280
|
"id": "/packages/react-router/src/scroll-restoration.tsx",
|
|
281
281
|
"moduleParts": {
|
|
282
|
-
"index.production.js": "
|
|
282
|
+
"index.production.js": "4869-173"
|
|
283
283
|
},
|
|
284
284
|
"imported": [
|
|
285
285
|
{
|
|
286
|
-
"uid": "
|
|
286
|
+
"uid": "4869-179"
|
|
287
287
|
},
|
|
288
288
|
{
|
|
289
|
-
"uid": "
|
|
289
|
+
"uid": "4869-166"
|
|
290
290
|
},
|
|
291
291
|
{
|
|
292
|
-
"uid": "
|
|
292
|
+
"uid": "4869-170"
|
|
293
293
|
}
|
|
294
294
|
],
|
|
295
295
|
"importedBy": [
|
|
296
296
|
{
|
|
297
|
-
"uid": "
|
|
297
|
+
"uid": "4869-176"
|
|
298
298
|
}
|
|
299
299
|
]
|
|
300
300
|
},
|
|
301
|
-
"
|
|
301
|
+
"4869-174": {
|
|
302
302
|
"id": "/packages/react-router/src/awaited.tsx",
|
|
303
303
|
"moduleParts": {
|
|
304
|
-
"index.production.js": "
|
|
304
|
+
"index.production.js": "4869-175"
|
|
305
305
|
},
|
|
306
306
|
"imported": [
|
|
307
307
|
{
|
|
308
|
-
"uid": "
|
|
308
|
+
"uid": "4869-166"
|
|
309
309
|
},
|
|
310
310
|
{
|
|
311
|
-
"uid": "
|
|
311
|
+
"uid": "4869-170"
|
|
312
312
|
}
|
|
313
313
|
],
|
|
314
314
|
"importedBy": [
|
|
315
315
|
{
|
|
316
|
-
"uid": "
|
|
316
|
+
"uid": "4869-176"
|
|
317
317
|
}
|
|
318
318
|
]
|
|
319
319
|
},
|
|
320
|
-
"
|
|
320
|
+
"4869-176": {
|
|
321
321
|
"id": "/packages/react-router/src/index.tsx",
|
|
322
322
|
"moduleParts": {
|
|
323
|
-
"index.production.js": "
|
|
323
|
+
"index.production.js": "4869-177"
|
|
324
324
|
},
|
|
325
325
|
"imported": [
|
|
326
326
|
{
|
|
327
|
-
"uid": "
|
|
327
|
+
"uid": "4869-160"
|
|
328
328
|
},
|
|
329
329
|
{
|
|
330
|
-
"uid": "
|
|
330
|
+
"uid": "4869-166"
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
|
-
"uid": "
|
|
333
|
+
"uid": "4869-170"
|
|
334
334
|
},
|
|
335
335
|
{
|
|
336
|
-
"uid": "
|
|
336
|
+
"uid": "4869-172"
|
|
337
337
|
},
|
|
338
338
|
{
|
|
339
|
-
"uid": "
|
|
339
|
+
"uid": "4869-174"
|
|
340
340
|
}
|
|
341
341
|
],
|
|
342
342
|
"importedBy": [],
|
|
343
343
|
"isEntry": true
|
|
344
344
|
},
|
|
345
|
-
"
|
|
345
|
+
"4869-178": {
|
|
346
346
|
"id": "use-sync-external-store/shim/with-selector",
|
|
347
347
|
"moduleParts": {},
|
|
348
348
|
"imported": [],
|
|
349
349
|
"importedBy": [
|
|
350
350
|
{
|
|
351
|
-
"uid": "
|
|
351
|
+
"uid": "4869-160"
|
|
352
352
|
}
|
|
353
353
|
],
|
|
354
354
|
"isExternal": true
|
|
355
355
|
},
|
|
356
|
-
"
|
|
356
|
+
"4869-179": {
|
|
357
357
|
"id": "react",
|
|
358
358
|
"moduleParts": {},
|
|
359
359
|
"imported": [],
|
|
360
360
|
"importedBy": [
|
|
361
361
|
{
|
|
362
|
-
"uid": "
|
|
362
|
+
"uid": "4869-170"
|
|
363
363
|
},
|
|
364
364
|
{
|
|
365
|
-
"uid": "
|
|
365
|
+
"uid": "4869-172"
|
|
366
366
|
}
|
|
367
367
|
],
|
|
368
368
|
"isExternal": true
|
|
@@ -871,6 +871,7 @@
|
|
|
871
871
|
const componentTypes = ['component', 'errorComponent', 'pendingComponent'];
|
|
872
872
|
const visibilityChangeEvent = 'visibilitychange';
|
|
873
873
|
const focusEvent = 'focus';
|
|
874
|
+
const preloadWarning = 'Error preloading route! ☝️';
|
|
874
875
|
class Router {
|
|
875
876
|
#unsubHistory;
|
|
876
877
|
resetNextScroll = false;
|
|
@@ -1599,14 +1600,14 @@
|
|
|
1599
1600
|
if (preload) {
|
|
1600
1601
|
this.preloadRoute(nextOpts).catch(err => {
|
|
1601
1602
|
console.warn(err);
|
|
1602
|
-
console.warn(
|
|
1603
|
+
console.warn(preloadWarning);
|
|
1603
1604
|
});
|
|
1604
1605
|
}
|
|
1605
1606
|
};
|
|
1606
1607
|
const handleTouchStart = e => {
|
|
1607
1608
|
this.preloadRoute(nextOpts).catch(err => {
|
|
1608
1609
|
console.warn(err);
|
|
1609
|
-
console.warn(
|
|
1610
|
+
console.warn(preloadWarning);
|
|
1610
1611
|
});
|
|
1611
1612
|
};
|
|
1612
1613
|
const handleEnter = e => {
|
|
@@ -1619,7 +1620,7 @@
|
|
|
1619
1620
|
target.preloadTimeout = null;
|
|
1620
1621
|
this.preloadRoute(nextOpts).catch(err => {
|
|
1621
1622
|
console.warn(err);
|
|
1622
|
-
console.warn(
|
|
1623
|
+
console.warn(preloadWarning);
|
|
1623
1624
|
});
|
|
1624
1625
|
}, preloadDelay);
|
|
1625
1626
|
}
|
|
@@ -1646,6 +1647,7 @@
|
|
|
1646
1647
|
dehydrate = () => {
|
|
1647
1648
|
return {
|
|
1648
1649
|
state: {
|
|
1650
|
+
matchIds: this.state.matchIds,
|
|
1649
1651
|
dehydratedMatches: this.state.matches.map(d => pick(d, ['fetchedAt', 'invalid', 'preloadMaxAge', 'maxAge', 'id', 'loaderData', 'status', 'updatedAt']))
|
|
1650
1652
|
}
|
|
1651
1653
|
};
|
|
@@ -1660,11 +1662,9 @@
|
|
|
1660
1662
|
const ctx = _ctx;
|
|
1661
1663
|
this.dehydratedData = ctx.payload;
|
|
1662
1664
|
this.options.hydrate?.(ctx.payload);
|
|
1663
|
-
const
|
|
1664
|
-
dehydratedMatches
|
|
1665
|
-
} = ctx.router.state;
|
|
1665
|
+
const dehydratedState = ctx.router.state;
|
|
1666
1666
|
let matches = this.matchRoutes(this.state.location.pathname, this.state.location.search).map(match => {
|
|
1667
|
-
const dehydratedMatch = dehydratedMatches.find(d => d.id === match.id);
|
|
1667
|
+
const dehydratedMatch = dehydratedState.dehydratedMatches.find(d => d.id === match.id);
|
|
1668
1668
|
invariant(dehydratedMatch, `Could not find a client-side match for dehydrated match with id: ${match.id}!`);
|
|
1669
1669
|
if (dehydratedMatch) {
|
|
1670
1670
|
return {
|
|
@@ -1677,6 +1677,7 @@
|
|
|
1677
1677
|
this.__store.setState(s => {
|
|
1678
1678
|
return {
|
|
1679
1679
|
...s,
|
|
1680
|
+
matchIds: dehydratedState.matchIds,
|
|
1680
1681
|
matches,
|
|
1681
1682
|
matchesById: this.#mergeMatches(s.matchesById, matches)
|
|
1682
1683
|
};
|
|
@@ -1693,10 +1694,10 @@
|
|
|
1693
1694
|
const id = `__TSR_DEHYDRATED__${strKey}`;
|
|
1694
1695
|
const data = typeof getData === 'function' ? await getData() : getData;
|
|
1695
1696
|
return `<script id='${id}' suppressHydrationWarning>window["__TSR_DEHYDRATED__${escapeJSON(strKey)}"] = ${JSON.stringify(data)}
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1697
|
+
;(() => {
|
|
1698
|
+
var el = document.getElementById('${id}')
|
|
1699
|
+
el.parentElement.removeChild(el)
|
|
1700
|
+
})()
|
|
1700
1701
|
</script>`;
|
|
1701
1702
|
});
|
|
1702
1703
|
return () => this.hydrateData(key);
|