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(
381381 fill ( wrappedRoute . module , 'action' , makeWrappedAction ) ;
382382 }
383383
384+ if ( wrappedRoute . module . loader ) {
385+ fill ( wrappedRoute . module , 'loader' , makeWrappedLoader ) ;
386+ }
387+
384388 // Entry module should have a loader function to provide `sentry-trace` and `baggage`
385389 // They will be available for the root `meta` function as `data.sentryTrace` and `data.sentryBaggage`
386390 if ( ! wrappedRoute . parentId ) {
@@ -391,10 +395,6 @@ function makeWrappedCreateRequestHandler(
391395 fill ( wrappedRoute . module , 'loader' , makeWrappedRootLoader ) ;
392396 }
393397
394- if ( wrappedRoute . module . loader ) {
395- fill ( wrappedRoute . module , 'loader' , makeWrappedLoader ) ;
396- }
397-
398398 routes [ id ] = wrappedRoute ;
399399 }
400400
You can’t perform that action at this time.
0 commit comments