Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

Questions tagged [redux]

Redux is a pattern and library for managing JavaScript application state, using events called "actions". It serves as a centralized store for state that is needed across your entire application, with rules ensuring that the state can only be updated in a predictable fashion. Redux make it easier to understand when, where, why, and how the state in your application is being updated, and how your application logic will behave when those changes occur.

-4 votes
0 answers
21 views

Invariant failed: A state mutation was detected between dispatches [closed]

This is the body of the code const tableHeader = [ { title: "Product name", widthClass: "w-[25%]" }, { title: "Product category", widthClass: "w-[19%...
Iroh Nkechi Omolola's user avatar
-1 votes
0 answers
15 views

Issue with Keycloak Redirect on App Refresh

i have two tabs open on the same browser, what i want to do is that if i login on one of the tab i dont want to be logged in on the second tab also. I am using redux toolkit redux persist and keycloak ...
Otonye Amietubodie's user avatar
1 vote
0 answers
30 views

ReactJS: ResizeObserver loop completed with undelivered notifications

I'm seeing the following error when I submit a particular form: This is happening when I submit a edit form but I don't see this error when I submit a add form. I have checked thoroughly in my ...
aniket working's user avatar
0 votes
1 answer
15 views

Using Redux Persist [duplicate]

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
1 answer
30 views

update multiple objects in array using redux toolkit

I have a store called stories which has a userStories object stored. Example of userStories object inside store: userStories: { userId1: [{storyId: 1, viewedBy: [id5, id2, id9]}, {...
Max adam's user avatar
  • 105
-1 votes
0 answers
21 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
-1 votes
0 answers
24 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
2 votes
2 answers
86 views

Type-check an array of tuples

I'm trying to write and type-check an array of tuples that pair an action creator with its reducer, and need to validate: That the action's Payload is the same as the reducer's Payload That all the ...
sindre's user avatar
  • 310
0 votes
1 answer
39 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
1 vote
1 answer
27 views

Angular State of ComponentStore<T>.updater is undefined

I have this ComponentStore @Injectable({ providedIn: 'root', }) export class SceneGraphStore extends ComponentStore<SceneGraphState> { private readonly sceneGraphUtils = new SceneGraphUtils()...
Son Hai Vu's user avatar
-1 votes
0 answers
28 views

Why do all posts have one identical copy with identical data [closed]

I've recently been making blog pet project and encountered problem of posts having identical copies. Because of that when I try to add reactions to the post I keep getting next error It starts from 1 ...
zhans's user avatar
  • 1
0 votes
1 answer
26 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
0 votes
1 answer
22 views

RTK Query: Middleware - Property 'error' does not exist on type '{}'

I am trying to create a errorMiddleware that will toast message whenever there is an error occuring from the api calls. The action arguement is throwing a TS type error that says: Property 'error' ...
Sushant's user avatar
  • 59
0 votes
0 answers
20 views

Syntactic problems with Redux middleware when try to add .concat(authMiddleware)

Here is authMiddleware: "use client"; import { Middleware } from "@reduxjs/toolkit"; import { clearUserProfile } from "../reducers/userProfile"; import { clearIdToken } ...
Cường Trần Văn's user avatar
0 votes
0 answers
24 views

redux-persist failed to create sync storage. falling back to noop storage. in NextJS/App Router [duplicate]

I'm trying to set up a simlpe Redux store in my NextJS 14/Typescript web app with persistent data. Here's what I have so far from following official doc, and a few blogs here and there. provider.tsx &...
Luis Angel Urena Lopez's user avatar

15 30 50 per page
1
2 3 4 5
2364