|
|
@ -227,7 +227,7 @@ export const elements = { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
export function createAsyncLoadStore (reducer, initialState, itemKey) { |
|
|
|
export function createAsyncLoadStore (reducer, initialState, itemKey) { |
|
|
|
const state = merge(asyncInitialState, initialState) |
|
|
|
const state = merge(asyncInitialState, initialState) |
|
|
|
const store = createStore(reduceReducers(asyncReducer, reducer, state)) |
|
|
|
const store = createStore(reduceReducers(state, asyncReducer, reducer)) |
|
|
|
|
|
|
|
|
|
|
|
if (typeof itemKey !== 'undefined') { |
|
|
|
if (typeof itemKey !== 'undefined') { |
|
|
|
store.dispatch({ |
|
|
|
store.dispatch({ |
|
|
|