Esempio n. 1
0
function getMiddleware(): Middleware[] {
  return compact([
    thunk,
    actionIdMiddleware(),
    __DEV__ ? logMiddleware() : null,
  ]);
}
Esempio n. 2
0
function getStoreEnhancers(): Function[] {
  return compact([
    applyMiddleware(...getMiddleware()),
    !__TEST__ ? localStorageStoreEnhancer() : null,
    !__TEST__ ? getDevToolsStoreEnhancer() : null, // will this work in prod? might as well see
  ]);
}