File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -307,6 +307,10 @@ function makeWrappedCreateRequestHandler(
307
307
fill ( wrappedRoute . module , 'action' , makeWrappedAction ) ;
308
308
}
309
309
310
+ if ( wrappedRoute . module . loader ) {
311
+ fill ( wrappedRoute . module , 'loader' , makeWrappedLoader ) ;
312
+ }
313
+
310
314
// Entry module should have a loader function to provide `sentry-trace` and `baggage`
311
315
// They will be available for the root `meta` function as `data.sentryTrace` and `data.sentryBaggage`
312
316
if ( ! wrappedRoute . parentId ) {
@@ -317,10 +321,6 @@ function makeWrappedCreateRequestHandler(
317
321
fill ( wrappedRoute . module , 'loader' , makeWrappedRootLoader ) ;
318
322
}
319
323
320
- if ( wrappedRoute . module . loader ) {
321
- fill ( wrappedRoute . module , 'loader' , makeWrappedLoader ) ;
322
- }
323
-
324
324
routes [ id ] = wrappedRoute ;
325
325
}
326
326
You can’t perform that action at this time.
0 commit comments