fix: actually return values from functions
This commit is contained in:
parent
b280c63799
commit
8c6ca980e9
|
@ -23,6 +23,7 @@ export default async function configureStore(latus, {defaultState = {}}) {
|
|||
if (-1 !== index) {
|
||||
options.enhancers.splice(index, 1, ...defaultEnhancers);
|
||||
}
|
||||
return options.enhancers;
|
||||
},
|
||||
middleware: (getDefaultMiddleware) => {
|
||||
const index = options.middleware.indexOf('@latus/redux/defaultMiddleware');
|
||||
|
@ -33,6 +34,7 @@ export default async function configureStore(latus, {defaultState = {}}) {
|
|||
},
|
||||
}));
|
||||
}
|
||||
return options.middleware;
|
||||
},
|
||||
preloadedState: reducer(defaultState, {type: null}),
|
||||
reducer,
|
||||
|
|
Loading…
Reference in New Issue
Block a user