We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7ae9dd commit 14d8444Copy full SHA for 14d8444
src/store/searchSlice.ts
@@ -1,4 +1,3 @@
1
-import type { PayloadAction } from '@reduxjs/toolkit'
2
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit'
3
4
import type { AppDispatch, RootState } from '@app/store'
@@ -90,7 +89,7 @@ const searchSlice = createSlice({
90
89
state.error = null
91
state.activeQuery = action.meta.arg.query
92
})
93
- .addCase(getSearch.fulfilled, (state, action: PayloadAction<SearchState['result']>) => {
+ .addCase(getSearch.fulfilled, (state, action) => {
94
if (state.activeQuery !== action.meta.arg.query) return
95
state.isLoading = false
96
state.result = action.payload
0 commit comments