DEV Community

Discussion on: Implement Protected Routes in NextJS

Collapse
 
shubhamverma profile image
Shubham Verma

Glad it saved you!
yes those flashed are actually the useEffect running on mount and until then there nothing to render.
You can maybe add Loading components or something to indicate that the token is getting verified

Collapse
 
hellodemola profile image
Ademola Onasoga

Oh. Guessed as much. Thanks for your prompt response. You're awesome!