python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
React. Redux persist sends two identical requests
i am using redux-persist and refux tool kit. I have a dependency, if the slice (RTK) changes, then there is a request to the server. Without a persister, there is 1 request, as it should be. But when ...
Dmitry Yushkevich
Votes: 0
Answers: 1
redux toolkit reducer with multiple parameters? redux toolkit
Given this
export const slice = createSlice({
name: 'reducer',
initialState: {
},
reducers: {
test: (state, action) => {
console.log(action.payload) // 1
}...
Bas
Votes: 0
Answers: 2
Why are entities from createSelector returning null when tested in Jest?
I am writing unit tests using Jest/Testing Library.
When I render a component that uses createEntityAdapter method of redux/toolkit, it returns this error:
TypeError: Cannot read property 'id' of unde...
porFavor
Votes: 0
Answers: 1
How i can use thunk inside another thunk in Redux?
I created thunk by redux toolkit "createAsyncThunk" and i do some async operations here
export let Login: any = createAsyncThunk("authPage/Login",
async ({values, action}: any,...
Yefimchuk
Votes: 0
Answers: 1