function createReducer (asyncReducers) {
  return (state, action) => {
    if (action.type === 'LOG_OUT') {
      state = undefined
    }
    return combineReducers({
      route: routeReducer,
      global: appReducer,
      language: languageProviderReducer,
      login: appReducer,

      project: projectReducer,
      flow: flowReducer,
      stream: streamReducer,
      job: jobReducer,
      namespace: namespaceReducer,
      user: userReducer,
      udf: udfReducer,
      riderInfo: riderInfoReducer,

      instance: instanceReducer,
      database: databaseReducer,

      workbench: workbenchReducer,
      resource: resourceReducer,
      performance: performanceReducer,

      ...asyncReducers
    })(state, action)
  }
}
Creates the main reducer with the asynchronously loaded ones