Reactjs – React: useReducer dispatch's callback
I have a reducer for a state. When the reducer's dispatch is called, I need to get the newly created item. Alternatively I need a callback for the dispatch, so I can perform further actions AFTER the dispatch has completed.…