Skip to content

Commit

Permalink
fix(redux-store): add reducers to initializeStore (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
karimStekelenburg authored Jul 29, 2021
1 parent 5f2d512 commit d9aeabf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/redux-store/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import type { TypedUseSelectorHook } from 'react-redux'
import { combineReducers, configureStore } from '@reduxjs/toolkit'
import { useDispatch, useSelector } from 'react-redux'

import { agentSlice } from './slices/agent'
import { connectionsSlice } from './slices/connections/connectionsSlice'
import { credentialsSlice, proofsSlice, connectionsSlice, agentSlice } 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 d9aeabf

Please sign in to comment.