How to show loader while auth is verifying?
Version: react-router v1.31.20
I have a route
/auth/verify
which is navigated to when a user clicks on a magic link. The logic in the beforeLoad
handles the magic link being clicked and verifies the user/creates a session and then redirects to the dashboard. While this is happening it shows a white page.
I would like to show a loading spinner or similar, but nothing I have tried works. Namely pendingComponent, a loader or component.
Any suggestions would be appreciated!
2 Replies
deep-jade•17mo ago
Do this work in the loader instead.
flat-fuchsiaOP•17mo ago
Ok, will give that a go
tried it using the loader but the pending component still does not show. Just a white blank page