We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b8e65f commit c3aaa58Copy full SHA for c3aaa58
src/Redux/Store/index.jsx
@@ -3,7 +3,7 @@
3
// The "list" slice is handled by the default export from ../reducer/index.jsx
4
5
import { configureStore } from '@reduxjs/toolkit';
6
-import index from '../reducer/index.jsx';
+import index from '../Reducer/index.jsx';
7
8
export const store = configureStore({
9
reducer: {
src/Redux/reducer/index.jsx
@@ -23,9 +23,6 @@ const reduxReducer = createSlice({
23
24
// Spread the payload into state (works if payload is an array).
25
state.push(...item);
26
-
27
- // Persist basket items to localStorage so they survive page reloads.
28
- localStorage.setItem('BasketItems', JSON.stringify(state));
29
},
30
31
// removeItem: removes an item by id.
0 commit comments