365体育足球滚球比分

Questions tagged [redux-persist]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

How to sync multiple tabs in react redux-persist?

I'm using redux-persist in my web project. But when I logout in a tab the state is not REHYDRATING in other tabs. const rootReducer=combineReducers({ UserRed:UserReducer }) const ...
0
votes
1answer
21 views

Redux: My state is receiving '@@redux/INITi.8.g.w.a.m' Redux state not updating

I've been debugging why my state hasn't been changing and noticed this being logged in my reducer: { type: '@@redux/INITi.8.g.w.a.m' } This is the store which includes state, action types, reducer, ...
1
vote
0answers
18 views

Redux Persisting a Moment.js Date Object and Stringifying and Parsing Moment.js

I have a moment.js Date object that I work with that I want to persist in redux and redux-persist and then retrieve the Date object from the redux-persist store and work with it again as a moment.js ...
0
votes
0answers
43 views

Jest Redux Persist: TypeError: Cannot read property 'catch' of undefined at writeStagedState

I'm trying to test my LoginScreen with Jest and Typescript. I use redux and redux-persist for storage and have set the storage up to use AsyncStorage as part of the config. I suspect that redux-...
0
votes
0answers
21 views

Redux state isn't being updated across the app in development

I'm having a very weird issue with redux. In my current app, I decided to use a logout pattern suggested by Dan Abramov. Basically, it looks like this: const withLogout = (state, action) => { ...
0
votes
0answers
8 views

How to show to the user when internet is back that the data that persisted when he was offline are re-dispatching?

i am building a mobile application using react-native/redux, and i did some functionality for offline mode with react-native-offline and redux-persist, now what i want is to show to user when he is ...
0
votes
0answers
5 views

How can i let the user chose between accept to send data that persisted on offline mode or to discarded it the time internet is back. in react -native

i am using react-native-offline and redux-persist for persist and rehydrate data, the question is How can i let the user chose between accepting to send to api the data that persisted on offline mode ...
0
votes
2answers
54 views

Whenever I wrap my App with PersistGate it gives me “TypeError: users.map is not a function” in one component, otherwise it works fine

As the title says, I'm mapping through an array I have from an api in UserCardList component and it works fine but once I wrap App with PersistGate, it gives me "TypeError: users.map is not a function"...
0
votes
1answer
17 views

value not read with redux-persist on app load

Iam new to react/react-native and was trying react-native application. My idea is to set a client_id that persists on app start, restart, uninstall, and installs. So when i try saving from editor (...
0
votes
0answers
12 views

Why my redux store is emty when i refresh my page

I get this erro store.getState is not a function While I was trying to setup redux store for my reactjs project Here is my store code: import { persistStore, persistReducer } from 'redux-persist'; ...
0
votes
1answer
20 views

Redux useSelector with Conditional statement

I need to get Redux store data but not always and different data for each component instantiate. How can I use useSelector with Conditional statement? The component should get data from store only ...
0
votes
0answers
29 views

Why the store does not persist the data using redux-persist in mobile?

I'm using redux-persist library, but the data is storage only on browser and it's not saved on android mobile. My store: import { configureStore, combineReducers, } from '@reduxjs/toolkit'; ...
0
votes
1answer
68 views

State changing to undefined value. I'm using redux-toolkit with redux-persist

I'm trying change my state in the login reducer, but after the state.user = data.user operation, the console.log prints undefined. My authSlice: import { createSlice } from '@reduxjs/toolkit'; ...
0
votes
0answers
26 views

Why won't my redux state update from my second reducer in my React Native app?

So I am using redux with redux-persist and redux-thunk in my React Native Cli app. My first slice of state in 'user' is working totally fine. I added another slice of state called 'post' with one ...
1
vote
1answer
40 views

Does redux-persist persist/save data in between App updates?

On my phone when I'm doing debugging...if I save something on redux-persist, then I change some code and save and run: npx react-native run-android...when the new version of the app loads I still can ...

15 30 50 per page
1
2 3 4 5
19