skip to Main Content

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

React native – How can I use persistStore with Redux-Toolkit?

I have the following: import AsyncStorage from '@react-native-async-storage/async-storage' import { persistStore, persistReducer } from 'redux-persist'; import { configureStore } from "@reduxjs/toolkit"; import { searchReducer } from "./search/searchSlice" import { userReducer } from "./user/userSlice" export const store = configureStore({ reducer: {…

VIEW QUESTION
Back To Top
Search