DEV Community

Discussion on: Error handling in react redux with useSelector hook

Collapse
 
developersatyajit profile image
developersatyajit

Not like that. Error is updating my global state. I can see that. See my attachment. But in the component level it is not coming after the dispatch. The same approach is working in other component. Only difference is this is in a modal popup. There is a button when user clicks on the button it will dispatch the action and then reducer will update my state with error object. Upto this everything is working fine. Now I just want to console log the error after the dispatch call. I guess I have to write a promise there in UI or wait for your solution.

Collapse
 
cayde profile image
CAYDE

I have implemented this by using notification
github.com/C-A-Y-D-E/anime-video-s...