@tanstack/react-router 0.0.1-beta.165 → 0.0.1-beta.166

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.
@@ -7,7 +7,7 @@
7
7
  "name": "index.production.js",
8
8
  "children": [
9
9
  {
10
- "uid": "06a4-173",
10
+ "uid": "0961-173",
11
11
  "name": "\u0000rollupPluginBabelHelpers.js"
12
12
  },
13
13
  {
@@ -15,25 +15,25 @@
15
15
  "children": [
16
16
  {
17
17
  "name": "store/build/esm/index.js",
18
- "uid": "06a4-175"
18
+ "uid": "0961-175"
19
19
  },
20
20
  {
21
21
  "name": "react-store/build/esm/index.js",
22
- "uid": "06a4-177"
22
+ "uid": "0961-177"
23
23
  },
24
24
  {
25
25
  "name": "router-core/build/esm/index.js",
26
- "uid": "06a4-183"
26
+ "uid": "0961-183"
27
27
  },
28
28
  {
29
29
  "name": "react-router/src",
30
30
  "children": [
31
31
  {
32
- "uid": "06a4-185",
32
+ "uid": "0961-185",
33
33
  "name": "scroll-restoration.tsx"
34
34
  },
35
35
  {
36
- "uid": "06a4-187",
36
+ "uid": "0961-187",
37
37
  "name": "index.tsx"
38
38
  }
39
39
  ]
@@ -45,11 +45,11 @@
45
45
  "children": [
46
46
  {
47
47
  "name": "tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
48
- "uid": "06a4-179"
48
+ "uid": "0961-179"
49
49
  },
50
50
  {
51
51
  "name": "tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js",
52
- "uid": "06a4-181"
52
+ "uid": "0961-181"
53
53
  }
54
54
  ]
55
55
  }
@@ -59,235 +59,235 @@
59
59
  "isRoot": true
60
60
  },
61
61
  "nodeParts": {
62
- "06a4-173": {
62
+ "0961-173": {
63
63
  "renderedLength": 429,
64
64
  "gzipLength": 238,
65
65
  "brotliLength": 0,
66
- "mainUid": "06a4-172"
66
+ "mainUid": "0961-172"
67
67
  },
68
- "06a4-175": {
68
+ "0961-175": {
69
69
  "renderedLength": 1843,
70
70
  "gzipLength": 644,
71
71
  "brotliLength": 0,
72
- "mainUid": "06a4-174"
72
+ "mainUid": "0961-174"
73
73
  },
74
- "06a4-177": {
74
+ "0961-177": {
75
75
  "renderedLength": 1006,
76
76
  "gzipLength": 479,
77
77
  "brotliLength": 0,
78
- "mainUid": "06a4-176"
78
+ "mainUid": "0961-176"
79
79
  },
80
- "06a4-179": {
80
+ "0961-179": {
81
81
  "renderedLength": 181,
82
82
  "gzipLength": 129,
83
83
  "brotliLength": 0,
84
- "mainUid": "06a4-178"
84
+ "mainUid": "0961-178"
85
85
  },
86
- "06a4-181": {
86
+ "0961-181": {
87
87
  "renderedLength": 44,
88
88
  "gzipLength": 62,
89
89
  "brotliLength": 0,
90
- "mainUid": "06a4-180"
90
+ "mainUid": "0961-180"
91
91
  },
92
- "06a4-183": {
92
+ "0961-183": {
93
93
  "renderedLength": 61314,
94
94
  "gzipLength": 14436,
95
95
  "brotliLength": 0,
96
- "mainUid": "06a4-182"
96
+ "mainUid": "0961-182"
97
97
  },
98
- "06a4-185": {
98
+ "0961-185": {
99
99
  "renderedLength": 466,
100
100
  "gzipLength": 228,
101
101
  "brotliLength": 0,
102
- "mainUid": "06a4-184"
102
+ "mainUid": "0961-184"
103
103
  },
104
- "06a4-187": {
105
- "renderedLength": 17058,
106
- "gzipLength": 3802,
104
+ "0961-187": {
105
+ "renderedLength": 17328,
106
+ "gzipLength": 3843,
107
107
  "brotliLength": 0,
108
- "mainUid": "06a4-186"
108
+ "mainUid": "0961-186"
109
109
  }
110
110
  },
111
111
  "nodeMetas": {
112
- "06a4-172": {
112
+ "0961-172": {
113
113
  "id": "\u0000rollupPluginBabelHelpers.js",
114
114
  "moduleParts": {
115
- "index.production.js": "06a4-173"
115
+ "index.production.js": "0961-173"
116
116
  },
117
117
  "imported": [],
118
118
  "importedBy": [
119
119
  {
120
- "uid": "06a4-186"
120
+ "uid": "0961-186"
121
121
  }
122
122
  ]
123
123
  },
124
- "06a4-174": {
124
+ "0961-174": {
125
125
  "id": "/packages/store/build/esm/index.js",
126
126
  "moduleParts": {
127
- "index.production.js": "06a4-175"
127
+ "index.production.js": "0961-175"
128
128
  },
129
129
  "imported": [],
130
130
  "importedBy": [
131
131
  {
132
- "uid": "06a4-176"
132
+ "uid": "0961-176"
133
133
  }
134
134
  ]
135
135
  },
136
- "06a4-176": {
136
+ "0961-176": {
137
137
  "id": "/packages/react-store/build/esm/index.js",
138
138
  "moduleParts": {
139
- "index.production.js": "06a4-177"
139
+ "index.production.js": "0961-177"
140
140
  },
141
141
  "imported": [
142
142
  {
143
- "uid": "06a4-189"
143
+ "uid": "0961-189"
144
144
  },
145
145
  {
146
- "uid": "06a4-174"
146
+ "uid": "0961-174"
147
147
  }
148
148
  ],
149
149
  "importedBy": [
150
150
  {
151
- "uid": "06a4-186"
151
+ "uid": "0961-186"
152
152
  },
153
153
  {
154
- "uid": "06a4-182"
154
+ "uid": "0961-182"
155
155
  }
156
156
  ]
157
157
  },
158
- "06a4-178": {
158
+ "0961-178": {
159
159
  "id": "/node_modules/.pnpm/tiny-invariant@1.3.1/node_modules/tiny-invariant/dist/esm/tiny-invariant.js",
160
160
  "moduleParts": {
161
- "index.production.js": "06a4-179"
161
+ "index.production.js": "0961-179"
162
162
  },
163
163
  "imported": [],
164
164
  "importedBy": [
165
165
  {
166
- "uid": "06a4-186"
166
+ "uid": "0961-186"
167
167
  },
168
168
  {
169
- "uid": "06a4-182"
169
+ "uid": "0961-182"
170
170
  }
171
171
  ]
172
172
  },
173
- "06a4-180": {
173
+ "0961-180": {
174
174
  "id": "/node_modules/.pnpm/tiny-warning@1.0.3/node_modules/tiny-warning/dist/tiny-warning.esm.js",
175
175
  "moduleParts": {
176
- "index.production.js": "06a4-181"
176
+ "index.production.js": "0961-181"
177
177
  },
178
178
  "imported": [],
179
179
  "importedBy": [
180
180
  {
181
- "uid": "06a4-186"
181
+ "uid": "0961-186"
182
182
  },
183
183
  {
184
- "uid": "06a4-182"
184
+ "uid": "0961-182"
185
185
  }
186
186
  ]
187
187
  },
188
- "06a4-182": {
188
+ "0961-182": {
189
189
  "id": "/packages/router-core/build/esm/index.js",
190
190
  "moduleParts": {
191
- "index.production.js": "06a4-183"
191
+ "index.production.js": "0961-183"
192
192
  },
193
193
  "imported": [
194
194
  {
195
- "uid": "06a4-178"
195
+ "uid": "0961-178"
196
196
  },
197
197
  {
198
- "uid": "06a4-180"
198
+ "uid": "0961-180"
199
199
  },
200
200
  {
201
- "uid": "06a4-176"
201
+ "uid": "0961-176"
202
202
  }
203
203
  ],
204
204
  "importedBy": [
205
205
  {
206
- "uid": "06a4-186"
206
+ "uid": "0961-186"
207
207
  },
208
208
  {
209
- "uid": "06a4-184"
209
+ "uid": "0961-184"
210
210
  }
211
211
  ]
212
212
  },
213
- "06a4-184": {
213
+ "0961-184": {
214
214
  "id": "/packages/react-router/src/scroll-restoration.tsx",
215
215
  "moduleParts": {
216
- "index.production.js": "06a4-185"
216
+ "index.production.js": "0961-185"
217
217
  },
218
218
  "imported": [
219
219
  {
220
- "uid": "06a4-188"
220
+ "uid": "0961-188"
221
221
  },
222
222
  {
223
- "uid": "06a4-182"
223
+ "uid": "0961-182"
224
224
  },
225
225
  {
226
- "uid": "06a4-186"
226
+ "uid": "0961-186"
227
227
  }
228
228
  ],
229
229
  "importedBy": [
230
230
  {
231
- "uid": "06a4-186"
231
+ "uid": "0961-186"
232
232
  }
233
233
  ]
234
234
  },
235
- "06a4-186": {
235
+ "0961-186": {
236
236
  "id": "/packages/react-router/src/index.tsx",
237
237
  "moduleParts": {
238
- "index.production.js": "06a4-187"
238
+ "index.production.js": "0961-187"
239
239
  },
240
240
  "imported": [
241
241
  {
242
- "uid": "06a4-172"
242
+ "uid": "0961-172"
243
243
  },
244
244
  {
245
- "uid": "06a4-188"
245
+ "uid": "0961-188"
246
246
  },
247
247
  {
248
- "uid": "06a4-176"
248
+ "uid": "0961-176"
249
249
  },
250
250
  {
251
- "uid": "06a4-178"
251
+ "uid": "0961-178"
252
252
  },
253
253
  {
254
- "uid": "06a4-180"
254
+ "uid": "0961-180"
255
255
  },
256
256
  {
257
- "uid": "06a4-182"
257
+ "uid": "0961-182"
258
258
  },
259
259
  {
260
- "uid": "06a4-184"
260
+ "uid": "0961-184"
261
261
  }
262
262
  ],
263
263
  "importedBy": [
264
264
  {
265
- "uid": "06a4-184"
265
+ "uid": "0961-184"
266
266
  }
267
267
  ],
268
268
  "isEntry": true
269
269
  },
270
- "06a4-188": {
270
+ "0961-188": {
271
271
  "id": "react",
272
272
  "moduleParts": {},
273
273
  "imported": [],
274
274
  "importedBy": [
275
275
  {
276
- "uid": "06a4-186"
276
+ "uid": "0961-186"
277
277
  },
278
278
  {
279
- "uid": "06a4-184"
279
+ "uid": "0961-184"
280
280
  }
281
281
  ],
282
282
  "isExternal": true
283
283
  },
284
- "06a4-189": {
284
+ "0961-189": {
285
285
  "id": "use-sync-external-store/shim/with-selector",
286
286
  "moduleParts": {},
287
287
  "imported": [],
288
288
  "importedBy": [
289
289
  {
290
- "uid": "06a4-176"
290
+ "uid": "0961-176"
291
291
  }
292
292
  ],
293
293
  "isExternal": true
@@ -2343,6 +2343,7 @@
2343
2343
  value: [undefined, ...matchIds]
2344
2344
  }, /*#__PURE__*/React__namespace.createElement(CatchBoundary, {
2345
2345
  errorComponent: ErrorComponent,
2346
+ route: router.getRoute(rootRouteId),
2346
2347
  onCatch: () => {
2347
2348
  warning(false, `Error in router! Consider setting an 'errorComponent' in your RootRoute! 👍`);
2348
2349
  }
@@ -2476,7 +2477,6 @@
2476
2477
  value: matchIds
2477
2478
  }, /*#__PURE__*/React__namespace.createElement(ResolvedSuspenseBoundary, {
2478
2479
  fallback: /*#__PURE__*/React__namespace.createElement(PendingComponent, {
2479
- useLoader: route.useLoader,
2480
2480
  useMatch: route.useMatch,
2481
2481
  useContext: route.useContext,
2482
2482
  useRouteContext: route.useRouteContext,
@@ -2486,6 +2486,7 @@
2486
2486
  }, /*#__PURE__*/React__namespace.createElement(ResolvedCatchBoundary, {
2487
2487
  key: route.id,
2488
2488
  errorComponent: errorComponent,
2489
+ route: route,
2489
2490
  onCatch: () => {
2490
2491
  warning(false, `Error in route match: ${matchId}`);
2491
2492
  }
@@ -2602,7 +2603,14 @@
2602
2603
  // props.reset()
2603
2604
  }, [props.errorState.error]);
2604
2605
  if (props.errorState.error && activeErrorState.error) {
2605
- return /*#__PURE__*/React__namespace.createElement(errorComponent, activeErrorState);
2606
+ return /*#__PURE__*/React__namespace.createElement(errorComponent, {
2607
+ ...activeErrorState,
2608
+ useMatch: props.route.useMatch,
2609
+ useContext: props.route.useContext,
2610
+ useRouteContext: props.route.useRouteContext,
2611
+ useSearch: props.route.useSearch,
2612
+ useParams: props.route.useParams
2613
+ });
2606
2614
  }
2607
2615
  return props.children;
2608
2616
  }