Replies: 3 comments 1 reply
-
I am trying to do the exact same thing!. According to the docs:
I think we must open an issue for this. |
Beta Was this translation helpful? Give feedback.
-
@tannerlinsley any thoughts on this? @andrewbellucci or @dannyb have you been able to figure this out? |
Beta Was this translation helpful? Give feedback.
-
Running into the same issue, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was doing some testing with the router yesterday. The Pending Component is rendered when
loader
is taking over 1 second or the configured amount of time. What happens if the beforeLoad of a component takes over 1 second? Is there a way to show a pending component whenbeforeLoad
takes over 1 second? I can't see a way.beforeLoad
blocks the navigation. So it is a good place to do things like checking authorization. I was planning to load the currentUser there. What if that request takes some time? I would like to show a spinner. I have tried several different things, like putting the beforeLoad in a child component. Only thing that shows a spinner (PendingComponent) is if theloader
function takes time, not the beforeLoad taking time. If the beforeLoad takes time, it shows an empty screen.What is the best way to go about this? Looking for thoughts on this, thank you.
Beta Was this translation helpful? Give feedback.
All reactions