skip to Main Content

Reactjs – TS2345: Argument of type 'AsyncThunkAction<void | AddItem, ItemInput, AsyncThunkConfig>' is not assignable to parameter of type 'AnyAction'

In my slice, I have defined the action to be as follows: https://github.com/jasonabanico/RedGranite/blob/main/src/Client/RedGranite.Client.Web/src/app/containers/ItemPage/itemPageSlice.ts export const addItem = createAsyncThunk( 'itemPage/addItem', async (itemInput: ItemInput) => { return await itemService .addItem(itemInput) .catch((err: any) => { console.log("Error:", err); }); }, ) I have also…

VIEW QUESTION
Back To Top
Search