How to configure redux-persist with redux-toolkit?

store.js import {configureStore} from ‘@reduxjs/toolkit’; import storage from ‘redux-persist/lib/storage’ import {combineReducers} from “redux”; import { persistReducer } from ‘redux-persist’ import thunk from ‘redux-thunk’ const reducers = combineReducers({ //… }); const persistConfig = { key: ‘root’, storage }; const persistedReducer = persistReducer(persistConfig, reducers); const store = configureStore({ reducer: persistedReducer, devTools: process.env.NODE_ENV !== ‘production’, middleware: [thunk] }); … Read more

How to solve: console.error: “redux-persist failed to create sync storage. falling back to “noop” storage

In redux-persist v6, you try changing as follows: Old config V5 => import storage from ‘redux-persist/lib/storage’; const persistConfig = { //… storage, } New config v6 => First add: yarn add @react-native-async-storage/async-storage import AsyncStorage from ‘@react-native-async-storage/async-storage’; const persistConfig = { //… storage: AsyncStorage, }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)