Skip to content

Commit

Permalink
fix(redux-store): add reducers to initializeStore
Browse files Browse the repository at this point in the history
Signed-off-by: Karim Stekelenburg <[email protected]>
  • Loading branch information
karimStekelenburg committed Jul 28, 2021
1 parent 5f2d512 commit ab028dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/redux-store/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ import { useDispatch, useSelector } from 'react-redux'

import { agentSlice } from './slices/agent'
import { connectionsSlice } from './slices/connections/connectionsSlice'
import { credentialsSlice, proofsSlice } from './slices'

const rootReducer = combineReducers({
agent: agentSlice.reducer,
connections: connectionsSlice.reducer,
credentials: credentialsSlice.reducer,
proofs: proofsSlice.reducer,
})

type RootState = ReturnType<typeof rootReducer>
Expand Down

0 comments on commit ab028dd

Please sign in to comment.