fix: actually return values from functions

This commit is contained in:
cha0s 2021-01-27 16:28:27 -06:00
parent b280c63799
commit 8c6ca980e9

View File

@ -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,