How to show spinner when lazy route (js chunk) is being loaded?
Basically I want to have some some spinner when lazy route is being loaded. It is quite usefull for slow connections. Ideally to combine it with I assume that I can just utilise RouterState's - checked, it flashes spinner when chunk is already loaded and there is no
loader, so spinner will be shown util route and route data are both loaded.
With lodable/component lib I achieved this with:
status === 'pending'?loader, but isLoading works. Wondering if there is another solution
UPD: Another issue with isLoading that it also true when there is no loader in my route and when chunk is loaded1 Reply
other-emerald•3d ago
Hey 👋 Do you find a solution for this ?