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
// initialize http client with 200ms delay on loading state change if progress is not supported (defaults 100ms)const{fetch, addLoadingEventListener, addProgressEventListener}=HttpClient.getInstance({delay: 200});addLoadingEventListener((isLoading: boolean)=>{// do something for state boolean i.e. update redux state});addProgressEventListener((progress: IProgressPayload)=>{// do something with download progress data {url: string; start?: Date; received?: number; size?: number; done: boolean}});exportdefaultfetch;