Relative Content

Tag Archive for reactjsredux

React – redux, can i split reducer action to features if i have one object in state?

I have an object of Items in Redux store, each Item has its own items Array. So, Item and subItem have functions: create, delete its self. And in reducer of the store i have functions: createItem, deleteItem, createItemOfItem, deleteItemOfItem.. can i split this logic to slicers or another method to do it? Can i do this in Vanilla React with useReducer? Tried all my best with useReducer and Redux toolkit

Advanced Performance Optimization Strategies for React-Redux Applications

I’m working on a large-scale React application with Redux for state management, and I’m encountering performance issues during rendering. The application has multiple complex components, and as the data grows, the rendering time becomes noticeable, especially on initial load and when navigating between routes.

Redux persist and Date range

[[[enter image description here](https://i.sstatic.net/AJOoFqj8.jpg)](https://i.sstatic.net/M6YYiGwp.jpg)](https://i.sstatic.net/6iSYLLBM.jpg)

React redux refresh data fetch

I have read a code that save data from backend at redux, but I got little confused, isn’t it mean if someone else update the data, the data on my redux will not be updated? when should I update data at the redux?

Redux createAPI returning undefined when using transform

export const storageApi = createApi({ reducerPath: “storage”, baseQuery: storageRequestBaseQuery(), endpoints: (builder) => ({ getInventory: builder.query<InventoryAssets | undefined, string>({ query: (id) => id + “_inventory.geojson”, transformResponse: (r) => { console.log(r); return InventoryService.apiTransform(r); }, }), When I console log the output of the fetch within the storageApi base query, I see the expected response, however, when I […]