I'm using the slices feature of Redux Toolkit. As you may know, one slice returns an action for every created reducer.
I want to use the redux-promise-middleware library, which for a given ACTION_TYPE, it creates three possible new actions: ACTION_TYPE_FETCHING, ACTION_TYPE_FULFILLED, and ACTION_TYPE_REJECTED. How do I handle this from the point of view of the slices?
You'd need to add the expected action types to the
extraReducerssection ofcreateSlice, like: