DEV Community

Discussion on: Different approach to loading screen in React

Collapse
 
kuba_szw profile image
Kuba

I would catch this error and pass it to the state. Then handle it only in LoadingScreen component. Add some message on loadingScreen that something went wrong or redirect. What do you think? 😉

Collapse
 
teja463 profile image
Brahma Teja Ponnuru

Yeah nice idea.