Skip to main content
0 votes
0 answers
43 views

How do I manage SQLite DB connection across Expo application (with Redux store)?

So, Expo provides the component <SQLiteProvider> and a hook useSQLiteContext(). Now I have an App with Redux slices, and async thunks using that DB for CRUD operations. My main question is: how ...
Andrey.S's user avatar
3 votes
1 answer
63 views

How do I pass data inside fetch function from createBrowserRouter to load content before page has loaded

I'm using react-persist in my application. When I click to add a product to my basket and then want to navigate to my basket page, how do I pass the basket data to the fetch function in the loader ...
redoc01's user avatar
  • 2,533
-1 votes
1 answer
68 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 "...
sharat kumar's user avatar
1 vote
2 answers
131 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", ...
C P Verma's user avatar
  • 340
2 votes
1 answer
84 views

How to use parametrized queries in selectors?

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,451
2 votes
2 answers
39 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 ...
Tom Vuma's user avatar
1 vote
1 answer
41 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 ...
dlocyalp's user avatar
0 votes
1 answer
268 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: https://github....
Dolphin's user avatar
  • 40.6k
0 votes
2 answers
52 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 ...
RezKesh's user avatar
  • 2,964
-1 votes
1 answer
212 views

vi.spyOn(reactRedux, 'useDispatch') is not working / "TypeError: Cannot redefine property: useDispatch"

I don't seem to find a solution for the below code / test to work (I went through a lot of articles and stackOverflow...). Various solutions provided by chatGPT are useless as well. I also see people ...
GiedreA's user avatar
0 votes
1 answer
73 views

Redux State Sharing in Microfrontend Architecture | 1 host, 1 remote example

I have currently a host - container and a remote - dashboard. I have a full blown redux+saga setup at my container, which I am exposing to remote using Module federation as well. plugins: [ new ...
Devansh Nigam's user avatar
3 votes
2 answers
77 views

Can I use a variable index in a useSelector call?

Suppose I have a long list of playerData in my redux store, and some players' data gets updated very often. Let's say I have a Player component and inside of it I want to access that player's specific ...
EKW's user avatar
  • 2,153
0 votes
0 answers
92 views

How to Maintain Dynamic RTK Query Tag Validation and Invalidation for Multiple API Slices in Redux Toolkit?

I'm working on a project using Redux Toolkit (RTK) Query to manage multiple API endpoints, where each API slice is constructed dynamically through a function. My goal is to maintain a dynamic approach ...
Andishe Abbasian's user avatar
-2 votes
1 answer
150 views

How to prevent re render of all items in a nested flashlist with redux

Hi all so I'm working with a flattened json data for a menu component and everything works fine ,my issue is whenever i update the quantity of a particular item in the menu or decrement it my whole ...
BHL's user avatar
  • 311
-1 votes
1 answer
38 views

How is it possible for the router structure to be incorrect?

I get this error when in the HOME of my App I try to go to another page from the sidebar menu. Could not find router reducer in state tree, it must be mounted under "router" in my console I ...
Maria Scetta's user avatar

15 30 50 per page
1
2 3 4 5
1546