Loading component only on initial load?
I want a loading component to only show on log in or full reload, as that's when the majority of loading will occur (so this will live in my
_authenticated routes). Is there a way to achieve this? If I set a pendingComponent, this will just run on every page. Maybe I can just use React to achieve this3 Replies
equal-aqua•2mo ago
I would like to know too :). I only want to show the pendingComponent after 1sec on hard refresh or the first time the app load (which is the same thing really), is it possible ?
deep-jade•2mo ago
i dont think that's possible right now
we would need some additional configuration to configure "initial load behavior" differently
vicious-gold•2mo ago
Can't you just put a 1 second promise in the root/_auth loader which would guarantee the pending component is rendered. And then just put a really high stale time or only run it on
cause === "enter" such that it only runs once?