Possibility of showing a spinner / loader prior to beforeLoad delay of 500ms
Im piggy bagging off the auth example from the docs. But using Clerk together with Convex for my authentication.
I show a
<LoadingView/> to the user while convex and clerk is done loading auth. this takes approx 700ms after that the beforeLoad happens and doens't return before 500ms which results in a white screen in that time span.
My question is... is such a delay for this beforeLoad normal? and if so, could i show my loading spinner again while beforeLoad returns?
_auth.tsx
main.tsx
4 Replies
stormy-gold•14mo ago
are you using plain router or start? I assume router, just to make sure
unwilling-turquoiseOP•14mo ago
Hey! Yes i'm using just the router, started with the template from
npm create @tanstack/router@lateststormy-gold•14mo ago
you can set defaultMinPendingMs to 0
the default is 500 ms
adverse-sapphire•14mo ago
Does the defaultPendingMinMs affect routes without a pending component?