File tree Expand file tree Collapse file tree 5 files changed +11
-0
lines changed
Expand file tree Collapse file tree 5 files changed +11
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ import rootEpic from './root-epic';
99import rootReducer from './root-reducer' ;
1010import rootSaga from './root-saga' ;
1111
12+ declare const module : {
13+ hot ?: {
14+ accept : ( path : string , callback : ( ) => void ) => void ;
15+ } ;
16+ } ;
17+
1218const { environment } = envData ;
1319
1420const clientSide = isBrowser ( ) ;
@@ -46,11 +52,15 @@ export const createStore = (preloadedState = {}) => {
4652 ) ;
4753 }
4854 sagaMiddleware . run ( rootSaga ) ;
55+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
4956 epicMiddleware . run ( rootEpic ) ;
57+
5058 if ( module . hot ) {
5159 // Enable Webpack hot module replacement for reducers
5260 module . hot . accept ( './root-reducer' , ( ) => {
61+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-require-imports
5362 const nextRootReducer = require ( './root-reducer' ) ;
63+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
5464 store . replaceReducer ( nextRootReducer ) ;
5565 } ) ;
5666 }
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { combineEpics } from 'redux-observable';
33import { epics as challengeEpics } from '../templates/Challenges/redux' ;
44import { epics as appEpics } from '.' ;
55
6+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
67const rootEpic = combineEpics ( ...appEpics , ...challengeEpics ) ;
78
89export default rootEpic ;
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments