519 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-3
votes
1
answer
286
views
How do I use redux-persist and rtk with React Router v7 Framework (without SSR)? [closed]
I'm trying to migrate an existing React/Vite app (currently using React Router v7, along with redux, rtk-query, and redux-persist) to use React Router v7 in Framework mode. I'm hitting an error when ...
1
vote
2
answers
102
views
Redux Persisted Data Not Saving on Reload
I've looked at a number of forum posts prior to posting and still have not found a solution. I am storing data using Redux which is working as intended. I store it in SignIn.js and after navigating to ...
3
votes
1
answer
114
views
Persist Store with Redux in React Native
I'm having a problem getting Redux-Persist to work and hoping to get some pointers if I've done something wrong.
Here is my Store.js
import { configureStore, getDefaultMiddleware } from "@reduxjs/...
0
votes
2
answers
464
views
Next.js Redux with redux-persist hydration error
I got Next.js application with Typescript and I'm trying to make redux work with redux-persist, if the state in slice is same as the initial state, the application works fine, but if it actually have ...
0
votes
2
answers
104
views
I'm unable to concat custom middle ware with default middlewares in store configuration with redux persist and rtk query
its my store.ts file:
import storage from 'redux-persist/lib/storage'; // defaults to localStorage for web
import {
FLUSH,
PAUSE,
PERSIST,
persistReducer,
persistStore,
PURGE,
REGISTER,
...
-1
votes
1
answer
42
views
chosen category not persist after Category.js page refreshed
How can make user chosen category persist ?
store.js
import { combineReducers, configureStore } from "@reduxjs/toolkit"
import {
persistReducer,
FLUSH,
REHYDRATE,
...
-1
votes
1
answer
61
views
Passing reducer name to Redux-persist whitelist is not working
I want to make the user data persistent upon page refreshes. But when I successfully log in and check the Storage in browser developer tools' Application tab, it is empty. I have activated debugging ...
0
votes
0
answers
43
views
TypeError: Cannot read properties of undefined (reading 'quantity') [duplicate]
Ecommerce site using MERN. This is the Navbar.jsx component. Error shows cant read undefined 'quantity' on line 72.
ERROR MESSAGE
Uncaught TypeError: Cannot read properties of undefined (reading '...
-1
votes
1
answer
265
views
Redux Persist - Create filter
I'm new to React Redux. Can you tell me how to manually write the below saveUserFilter function? I don't want to use redux-persist-transform-filter anymore as it's using lodash.set, which is ...
1
vote
1
answer
45
views
About Auth systems and workflow
like when i made any auth system , user registers and then logins , then a cookie is generated , now like to have the user state stored across the app , i use redux , and also on refreshing the state ...
-3
votes
1
answer
633
views
TypeError: 0, _$$_REQUIRE(_dependencyMap[15], "redux").isAction is not a function (it is undefined)
Everything works when you remove the persisted reducer, and does not work with the persisted reducer. This is likely due to an issue with redux-persist, which is an older but still extremely popular ...
-1
votes
2
answers
787
views
Is there any other method to persist the state of the redux store other than the local storage?
I want to persist in the state of the redux store but do not want to handle it using the local storage. I just read some documents but according to the answers they provide, we can persist the state ...
1
vote
1
answer
103
views
The component does not render when set the manualPersist to true
From the redux-persist v6.0.0 doc: persistStore(store, [config, callback])
If you want to avoid that the persistence starts immediately after calling persistStore, set the option manualPersist. ...
1
vote
4
answers
103
views
Redux Perist is not storing Data
#store
import { combineReducers, configureStore } from "@reduxjs/toolkit";
import { persistReducer, persistStore } from "redux-persist";
import AsyncStorage from '@react-native-...
-1
votes
1
answer
206
views
How to save specific key with redux persit?
I want to just only save key currentLanguage
settingsReducer:
import { createSlice } from '@reduxjs/toolkit';
export const initialState = {
currentLanguage: '',
test: 'original',
};
const slice =...