Replies: 5 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. |
1 reply
|
@tannerlinsley any thoughts on this? @andrewbellucci or @dannyb have you been able to figure this out? |
0 replies
|
Running into the same issue, |
0 replies
|
Same issue here |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
loaderis 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 whenbeforeLoadtakes over 1 second? I can't see a way.beforeLoadblocks 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 theloaderfunction 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.
All reactions