In my redux reducer I map over state and copy internal items, then return the list, the list should be a new reference so the reducer should cause a r ...
In my redux reducer I map over state and copy internal items, then return the list, the list should be a new reference so the reducer should cause a r ...
The issue with this code is that the store triggering its subscribers but the data has not changed. The button is simply setting sub.a=10. However the ...
Is it safe to update redux state outside the slice? So basically to have something like this in your code: It looks a little sketchy to me, but I t ...
I'd like to use immer in my react typescript application. One of my reducer should deal with a state with a generic argument. The generic argument c ...
I am using useImmerReducer in my react app for the first time, but have run across a problem. I am using a class derived from Map, which I call Mappa ...
In this codesandbox I am trying to change the background color of a div element on mouseenter and revert it on mouse leave. It only works on the outer ...
I am new to Typescript and trying to use Redux-Toolkit with it in my React application. Here I am trying to create a To Do application with a nested s ...
Problem: react view is not updated I have a state that has the following composition: the data object is an array that stores more objects, this i ...
I am using Redux Toolkit, having a slice where i am doing crud operations in a slice.list but I am not able to filter slice.list here is my code... ...
I'm hoping to get the performace benefits of Immer and the state management of Recoil but don't know how to synchronize the state from useImmer with t ...
I've followed the docs (and some other posts) about RTK optimistic updates but I can't seem to get my case to work. Here is my createReply mutation: ...
I am new with this framework management system. I just created one function handlerAddInput which create multiple line of inputs. Now I want using ano ...
hi . I am planning to create a shopping cart system for my site. I use React and Redux toolkit. But when I want to dispatch my states, I encounter thi ...
I am trying to add bill into the billItems state using redux Toolkit and I don't want to have multiple same bill with the same Id in the billItems. Ea ...
I have a array of objects kept in my state, I want to be able to edit one of the objects in the array and update the state. However, I cannot seem to ...
I want to update an deeply nested value using immer.js I'm looking for a generic solution, where the path to value comes as string. Is there a way to ...
I try this: getProgramTicketsRes.data.layout.sectors[action.payload.sectorName][ action.payload.rowNum ].rowComponents[action.payload.rowComponen ...
This code below throws an error when I dispatch: // countSlice.js const countSlice = createSlice({ name: "count", initialState: 0, reduce ...
I've been trying out Immer.js with Typescript, but I keep running into a similar issue. Is there a pattern I can use to avoid some ugly code? Conside ...
I'm building a react native app using Expo and Expo Go to test it on an android device. It has been working flawlessly until today. I encoutered an er ...