#deferred component displays placeholder on route change

8 messages · Page 1 of 1 (latest)

valid rose
#

this deferred user menu component which is in the navbar displays a loading spinner every time i change the route even though it's a SPA and the route is already loaded? why is this happening and how can i fix this?

modest wren
#

How do you change the route? Do you click a link that uses the routerLink directive, or do you do something else?

valid rose
modest wren
#

And are you clicking on it to change the route? Can you provide a repro on stackblitz?

valid rose
#

here are my routes. when i'm on home page and click something to navigate for example on route /upload which doesn't exist, it takes me to NotFoundComponent and in the navbar i can see the loading spinner displayed on route change. i've tried directly loading NotFoundComponent without lazy loading it and it resulted in the same thing

modest wren
#

We can't open this repository
Provide a minimal reproduction that we can access

valid rose
#

i'm not very familiar with stackblitz. can i provide any necessary screenshots to fix the issue?

#

i don't seem to understand why this is happening