Is there any way to delay the first round of route loaders? #642
-
I have some stuff I need to do before I can let the loaders of the first matched route (typically the root route and How do I do work on the page before the route tree is built and |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Doesn't seem like anyone else has this use case? Would something like a bool in the router constructor to stall the process be approriate? The tree can still be passed in for building out the types but it wouldn't call loaders until an |
Beta Was this translation helpful? Give feedback.
-
There's a beforeLoad middleware that might help https://github.com/tigawanna/sherpa-firebase/blob/main/src/pages/admin/config.tsx |
Beta Was this translation helpful? Give feedback.
There's a beforeLoad middleware that might help
https://github.com/tigawanna/sherpa-firebase/blob/main/src/pages/admin/config.tsx