Skip to content

Commit

Permalink
Update store.js
Browse files Browse the repository at this point in the history
  • Loading branch information
danretegan committed Feb 24, 2024
1 parent affe438 commit 704daa4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/redux/store.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { configureStore } from '@reduxjs/toolkit';
import { contactsReducer } from './slices/contactsSlice';
import { filterReducer } from './slices/filterSlice';

/**
* In store, pentru fiecare "particica" din state-ul aplicatiei, o sa asignam un reducer care se va ocupa exclusiv de logica pentru acea "particica".
Expand All @@ -11,7 +13,10 @@ import { configureStore } from '@reduxjs/toolkit';
*/

const store = configureStore({
reducer: {},
reducer: {
contacts: contactsReducer,
filter: filterReducer,
},
});

export default store;

0 comments on commit 704daa4

Please sign in to comment.