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
With lodable/component lib I achieved this with:
I assume that I can just utilise RouterState's - checked, it flashes spinner when chunk is already loaded and there is no
UPD: Another issue with
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 solutionUPD: Another issue with
isLoading that it also true when there is no loader in my route and when chunk is loaded