Skip to main content
-3 votes
0 answers
40 views

I’m building a React project with Redux for state management. I have an action that updates the state, but my component doesn’t reflect the updated state even after dispatching the action. Code (slice ...
SABARI GANESH R's user avatar
Best practices
0 votes
2 replies
68 views

I've been reading up on React/Redux documentation, specifically on setting up types for the main redux application store, and was wondering if there are any significant differences when it comes to ...
Talos0248's user avatar
  • 260
-2 votes
1 answer
85 views

I'm building a React application with Redux Toolkit and need to handle token expiration automatically. When my access token expires, the server returns a 403 error, and I want to automatically refresh ...
bisky's user avatar
  • 27
0 votes
1 answer
145 views

I’m using RTK Query in a React component to fetch users: function MyComponent() { const { data, isLoading, isError, isSuccess, } = useGetUsersQuery(); if (isLoading) { return <div&...
lucataglia's user avatar
0 votes
0 answers
104 views

The request is frozen on the pending status, the loading status does not change in the component {status: “pending”, isLoading: true, data: undefined}, I see the response in devTools and in my API, ...
Mykola Kosobutskyi's user avatar
1 vote
1 answer
70 views

I have problems with understanding how to properly handle a case. Let's say we have a simplified component: const XComponent = ({ aCallback }) => { const [mutation] = useRtkQueryMutationHook() ...
freafrea's user avatar
  • 159
2 votes
1 answer
98 views

I'm working on a React app with Redux-Toolkit (RTK) Query. I need to fetch accounts from the server and then render them as well derive some data from them through a chain of selectors. If I fetch ...
user3272018's user avatar
  • 2,471
2 votes
1 answer
114 views

Has anyone used tests with Jest and run into issues where a Redux store persists between tests? Any ideas on how to reset it or prevent this? await act(async () => { render( <...
CodeMas's user avatar
  • 23
0 votes
1 answer
365 views

when I upgrade the redux version from 4.2.1 to 5.0.0, shows error: Module '"redux"' has no exported member 'CombinedState'.ts(2305) I have read the official release notes: https://github....
Dolphin's user avatar
  • 41k
0 votes
0 answers
51 views

I have set up an apiSlice on the server to fetchProducts in Next.js but the client is not getting the server side store info. There seems to be a lot of conflicting information out there with next-...
Richard's user avatar
1 vote
1 answer
85 views

I understand that RTK Query signifies a shift in thinking from Redux store / state management, and the general paradigm is that you use the RTK Query endpoint anytime you need data, and rely on it to ...
user101289's user avatar
  • 10.6k
0 votes
0 answers
150 views

Been getting back into Redux and learning more about RTK. Curious if there is a difference between these 2 approaches to respond to actions Listener Middleware: import type { AppStartListening } from '...
aug's user avatar
  • 11.8k
1 vote
1 answer
113 views

I've used redux toolkit for a few years and I'm pretty familiar with it. I'm going through and attempting to update old code using the newer RTK Query strategy to replace some of my old slices and ...
user101289's user avatar
  • 10.6k
-1 votes
1 answer
64 views

I'm building a nextjs app with redux and I'm at the point where I'm dispatching two consecutive asyncThunk actions to the backend api, one action sends a DELETE request and the other sends a POST ...
bader322's user avatar
2 votes
1 answer
91 views

I'm trying to use createAsyncThunk from Redux-Toolkit and I'm having trouble and I don't know how to solve it. I called createAsyncThunk from another component, and this createAsyncThunk changed the ...
이재욱's user avatar

15 30 50 per page
1
2 3 4 5
242