loader does not get called when used on another Routes file #9617
Unanswered
Jorge-Madrid-Portillo
asked this question in
v5 to v6 Migration
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have big app with multiple Routes and have recently upgraded to React router v6. I would like to use the loader feature but it seems it does not work within a subfile using Routes. I am creating a router with createBrowserRouter and createRoutesFromElements, then one of the Routes defined there renders with an Outlet another sub component which again renders another subcomponent in another file. This last components has some Routes and renders more things within, but I cannot use the loader within this las component since it does not get called. Loaders in the main router file do get called so it is working in that senses. Is there a reason why this happens?
Beta Was this translation helpful? Give feedback.
All reactions