Skip to main content

Questions tagged [react-redux]

The react-redux package provides the official React bindings for Redux: the `useSelector` and `useDispatch` hooks and the `connect` higher-order component. Use this tag for questions about accessing and updating Redux state in React components.

0 votes
0 answers
9 views

Using Redux Persist

I was using Redux Toolkit and tried to use Redux Persist but on terminal it shows this. A non-serializable value was detected in an action, in the path: `register`. Value: [Function: register] Take a ...
kodeater's user avatar
0 votes
0 answers
17 views

Redux State Does Not Change When Modified From useInterval

so im trying to load user data from localStorage and set it to the redux user state. heres what i have done: Where The User Is Being Used: import Fruit from "../components/Fruit" import { ...
AmirparsaDD's user avatar
0 votes
0 answers
18 views

TypeError: Cannot read properties of undefined (reading 'numberOfCakes')

I am beginner to React and Redux I am trying to learn Redux with React. I have created a store in store.js as below - const redux = require("redux"); const createStore = redux.createStore; ...
codenostalgia's user avatar
0 votes
0 answers
13 views

React RouterV6 Loaders

I try to use loader data from the router in my component, the routes where the loader function is in a separate file. The data is fetched via react-thunk and axios but I can't navigate exactly to this ...
VLP's user avatar
  • 1
0 votes
1 answer
35 views

Redux Question: When <App/> Component re-renders, does it cause all selectors to run again

I have read in Redux docs: The selector will be run whenever the function component renders (unless its reference hasn't changed since a previous render of the component so that a cached result can ...
moath's user avatar
  • 11
0 votes
1 answer
21 views

Redux Persist - Create filter

I'm new to React Redux. Can you tell me how to manually write the below saveUserFilter function? I don't want to use redux-persist-transform-filter anymore as it's using lodash.set, which is ...
scrscr87's user avatar
-1 votes
0 answers
19 views

Accessing information from a redux store in the main app from a dynamically loaded React Module? [closed]

I am using React (18.2) built with Vite (5.0.0) using vite-plugin-federation (1.3.5) to split up my application into a main application and several modules which are dynamically loaded once a user ...
Christofer Dutz's user avatar
0 votes
1 answer
35 views

Redux 5 - Selectors that return a new reference (such as an object or an array) should be memoized warning occurs with filter array method

I am a beginner Redux learner. I have a React 18 app. I am using redux 5 and react-redux 9. When I run my application I get the below warning in my browser: AnecdoteList.jsx:14 Selector unknown ...
qqq's user avatar
  • 846
-1 votes
1 answer
31 views

How does useSelector hook impact performance when selecting individual properties vs. destructuring the state in Redux?

I am using Redux in my React application and I often need to extract values from the Redux store using useSelector. Here are the two approaches I have considered: Approach 1: Selecting individual ...
Ishu Modanwal's user avatar
-1 votes
0 answers
14 views

Error: could not find react-redux context value; please ensure the component is wrapped in a <Provider>: In my React Native, Django-restframework

I have setup my RTK Query in React Native (expo-router)/File based here files rtk/api.ts: import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react"; export const api = ...
Chatelo's user avatar
-1 votes
0 answers
27 views

Alternative for send onQuerystarted as the logout function is not working as intended

I am currently building a MERN application , for the same I have made a logout in my api endpoint which is working as intended and has been tested in postman , However when I try to logout from my ...
andhakasur's user avatar
-1 votes
0 answers
32 views

How to pass coordinates from a leaflet map to the parent page in React-Redux

I have a Map component and want to pass the coordinates that the user is selecting by clicking on the map to the parent page. I am new to React-Redux so please bear with me. This is the Map component (...
Cristian's user avatar
0 votes
1 answer
24 views

Redux reducer remove item from nested object state

I'm trying to remove an item from the state in a reducer after a successful api call to delete an item. I think the problem is that I am not removing the deleted item correctly. I tried a number of ...
PixelPaul's user avatar
  • 2,754
-1 votes
2 answers
42 views

Is there any other method to persist the state of the redux store other than the local storage?

I want to persist in the state of the redux store but do not want to handle it using the local storage. I just read some documents but according to the answers they provide, we can persist the state ...
Rabia Khan's user avatar
0 votes
0 answers
36 views

Jest custom render importing react-redux provider error

I'm trying to make some testing for a react-native project but jest is encountering this error and I don't know why: FAIL __tests__/(tabs)/weather.test.tsx ● Test suite failed to run Jest ...
reactive's user avatar

15 30 50 per page
1
2 3 4 5
1551