You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lucas Neto Moreira edited this page Apr 29, 2024
·
2 revisions
There are basically 3 approaches to loading indicators:
Deferable blocks: Great for components that fetch their own data and update their own state, not suitable multiple components need to react to a loading state.
Interceptors: the least invasive option, you write no code to mark something as loading, you also have very little control, this does not scale at all and you will pay the price of the code you didn't write.
Controling loading indicators "manualy": maximum control, but you have to control everything. This can be aleviated with a simple service. This approach is outlined in this file.