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

React native – Redux Perist is not storing Data

#store import { combineReducers, configureStore } from "@reduxjs/toolkit"; import { persistReducer, persistStore } from "redux-persist"; import AsyncStorage from '@react-native-async-storage/async-storage'; import addUserSlice, { signInUser } from "./slices/addUserSlice"; import { thunk } from "redux-thunk"; const persistConfig = { key: 'root', storage: AsyncStorage,…

VIEW QUESTION
Back To Top
Search