File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed
commons/application/reducers Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -7,20 +7,20 @@ import { StoriesReducer as stories } from '../../../features/stories/StoriesRedu
7
7
import { FileSystemReducer as fileSystem } from '../../fileSystem/FileSystemReducer' ;
8
8
import { SideContentReducer as sideContent } from '../../sideContent/SideContentReducer' ;
9
9
import { WorkspaceReducer as workspaces } from '../../workspace/WorkspaceReducer' ;
10
+ import { OverallState } from '../ApplicationTypes' ;
10
11
import { RouterReducer as router } from './CommonsReducer' ;
11
12
import { SessionsReducer as session } from './SessionsReducer' ;
12
13
13
- const createRootReducer = ( ) =>
14
- combineReducers ( {
15
- router,
16
- achievement,
17
- dashboard,
18
- playground,
19
- session,
20
- stories,
21
- workspaces,
22
- fileSystem,
23
- sideContent
24
- } ) ;
14
+ const rootReducer = combineReducers < OverallState > ( {
15
+ router,
16
+ achievement,
17
+ dashboard,
18
+ playground,
19
+ session,
20
+ stories,
21
+ workspaces,
22
+ fileSystem,
23
+ sideContent
24
+ } ) ;
25
25
26
- export default createRootReducer ;
26
+ export default rootReducer ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import createSagaMiddleware from 'redux-saga';
5
5
import { SourceActionType } from 'src/commons/utils/ActionsHelper' ;
6
6
7
7
import { defaultState , OverallState } from '../commons/application/ApplicationTypes' ;
8
- import createRootReducer from '../commons/application/reducers/RootReducer' ;
8
+ import rootReducer from '../commons/application/reducers/RootReducer' ;
9
9
import MainSaga from '../commons/sagas/MainSaga' ;
10
10
import { generateOctokitInstance } from '../commons/utils/GitHubPersistenceHelper' ;
11
11
import { loadStoredState , SavedState , saveState } from './localStorage' ;
@@ -21,7 +21,7 @@ export function createStore() {
21
21
const initialStore = loadStore ( loadStoredState ( ) ) || defaultState ;
22
22
23
23
const createdStore = configureStore < OverallState , SourceActionType > ( {
24
- reducer : createRootReducer ( ) ,
24
+ reducer : rootReducer ,
25
25
// Fix for redux-saga type incompatibility
26
26
// See: https://github.com/reduxjs/redux-toolkit/issues/3950
27
27
middleware : middleware as any ,
You can’t perform that action at this time.
0 commit comments