What is the recommended way of using this alongside redux-toolkit?
I just started investigating whether it's easy/possible to integrate this in a new project I'm working on that uses redux-toolkit and I was wondering if you gave it a thought.
I've been trying to get something like this to work but the only way possible is through this:
const helloWorldSlice = createSlice({
name: 'helloWorld',
initialState: initialState,
extraReducers: {
[fetchDataRoutine.REQUEST](state, action: PayloadAction<any>) {
console.log(action)
// do stuff
return state
},
})
What is the recommended way of using this alongside redux-toolkit?
I just started investigating whether it's easy/possible to integrate this in a new project I'm working on that uses redux-toolkit and I was wondering if you gave it a thought.
I've been trying to get something like this to work but the only way possible is through this: