Skip to content

Instantly share code, notes, and snippets.

@whisher
Created June 27, 2020 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whisher/8f64ef96a398b83983c4f0c6a9288a86 to your computer and use it in GitHub Desktop.
Save whisher/8f64ef96a398b83983c4f0c6a9288a86 to your computer and use it in GitHub Desktop.
const createRootReducer = (history: History) =>
combineReducers({
router: connectRouter(history),
auth: authReducer,
lang: langReducer,
});
nello slice
export const selectError = (state: { auth: AuthState }): boolean =>
state.auth.error;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment