File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,11 @@ import Root from './Root/index'
7
7
import App from './App'
8
8
import storeFactory , { historyConf } from '../tools/store/forBrowser'
9
9
import reducers from './store/'
10
- const store = storeFactory ( reducers )
11
10
const history = historyConf ( {
12
11
basename : '/integration'
13
12
} )
13
+ const store = storeFactory ( reducers , history )
14
+
14
15
ReactDom . hydrate (
15
16
< Root store = { store } history = { history } component = { App } /> ,
16
17
document . getElementById ( 'bd' )
Original file line number Diff line number Diff line change @@ -10,9 +10,8 @@ const historyConf = (options) => {
10
10
return createBrowserHistory ( options )
11
11
}
12
12
13
- const middlewares = middleware . concat ( routerMiddleware ( history ) )
14
-
15
- const store = reducers => {
13
+ const store = ( reducers , history ) => {
14
+ const middlewares = middleware . concat ( routerMiddleware ( history ) )
16
15
return configureStore (
17
16
combineReducers ( reducers ) ,
18
17
{ } ,
You can’t perform that action at this time.
0 commit comments