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 @@ -381,6 +381,10 @@ function makeWrappedCreateRequestHandler(
381
381
fill ( wrappedRoute . module , 'action' , makeWrappedAction ) ;
382
382
}
383
383
384
+ if ( wrappedRoute . module . loader ) {
385
+ fill ( wrappedRoute . module , 'loader' , makeWrappedLoader ) ;
386
+ }
387
+
384
388
// Entry module should have a loader function to provide `sentry-trace` and `baggage`
385
389
// They will be available for the root `meta` function as `data.sentryTrace` and `data.sentryBaggage`
386
390
if ( ! wrappedRoute . parentId ) {
@@ -391,10 +395,6 @@ function makeWrappedCreateRequestHandler(
391
395
fill ( wrappedRoute . module , 'loader' , makeWrappedRootLoader ) ;
392
396
}
393
397
394
- if ( wrappedRoute . module . loader ) {
395
- fill ( wrappedRoute . module , 'loader' , makeWrappedLoader ) ;
396
- }
397
-
398
398
routes [ id ] = wrappedRoute ;
399
399
}
400
400
You can’t perform that action at this time.
0 commit comments