Example of a detailed loading spinner implemented as a hook. It gives users feedback when the request takes too long to load. It automatically retries up to 3 times if the request fails.
App.tsx
- shows all of the scenarios executed by the spinneruseLoader hook
- executes the operationcreateLoader
- the main operation that executes the entire loadercreateSpinner
- operation responsible for presenting the loading spinnerLoadingSpinner component
- the component that's responsible for showing all of the spinners