35,366 questions
-1
votes
0
answers
48
views
React Testing Library : TypeError: Cannot read properties of undefined (reading 'enhanceEndpoints') [closed]
I am using redux toolkit query and trying to run yarn test and after that i got the message below:
TypeError: Cannot read properties of undefined (reading 'enhanceEndpoints')
? src/store/features/...
0
votes
0
answers
48
views
The request is frozen on the, {status: “pending”, isLoading: true, data: undefined}
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, ...
-1
votes
1
answer
42
views
redux couldn't find store in react native 0.80
I have legacy application using vanilla redux and react-redux. I am facing this issue and unable to get root cause of this.
Could not find "store" in either the context or props of "...
0
votes
1
answer
59
views
TypeError: Can not read property 'store' of undefined, react-native 0.79.2
I'm encountering the following issue on Android after upgrading my React Native project to version 0.79.2. This error does not occur on iOS, which makes it harder to trace since the same codebase ...
1
vote
1
answer
43
views
Problem with accessing stale Redux state in event handlers
I have a SignalR (WebSocket) server for a game, and a React/Redux client that connects to it. I have a component whose task is to listen to SignalR messages to handle them, which usually involves ...
1
vote
2
answers
111
views
How to display msg received in API response on page?
I have one function which checks for user authorization
export const authUser = (rideId, action) => {
return (dispatch, getState) => {
const postData = {
consumer: "Rapi",
...
0
votes
0
answers
39
views
Propagate generic parameters through `react-redux` `connect`
Consider the following, where I have a component that has a generic type parameter used as the parameter argument of a callback property:
import { render } from '@testing-library/react-native';
import ...
2
votes
2
answers
30
views
React-Redux ShopCart Application (Remove_from_cart)
I am currently working on a React-Redux based Cart app, and I am experiencing the following problem:
When I continuously click the remove button in order to remove a product from my cart, the ...
-1
votes
1
answer
46
views
redux thunk pattern composing middleware calls
I'm sure this has been asked and answered, but maybe I'm not able to phrase it correctly to find the right results.
Say I have two redux middleware operations:
a call to create an asset entity in the ...
2
votes
1
answer
57
views
How to disable store persistence between Jest tests?
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(
<...
1
vote
1
answer
34
views
How to preserve specific properties effectively when merging nested state in Redux?
In our reducer, we’re updating a nested array with new data coming from the backend.
However, certain UI-specific properties (like tooltip) that are not part of the backend response need to be ...
0
votes
1
answer
180
views
Module '"redux"' has no exported member 'CombinedState'.ts(2305)
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: http://github....
0
votes
2
answers
46
views
How can I create takeOne effect creator in Redux Saga?
I want a Redux Saga effect creator that only takes the first dispatched action of a pattern and ignores the rest. How can I create it? For example here Saga docs explains how takeEvery is created.
I ...
0
votes
0
answers
37
views
Redux toolkit synchronization between server store and client store not working
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-...
1
vote
1
answer
44
views
rtk query and store management
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 ...