Skip to content

Instantly share code, notes, and snippets.

@AllGistsEqual
Created April 25, 2021 21:03
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 AllGistsEqual/8c1ecd23a04acc51025bb2ab89d4a1b4 to your computer and use it in GitHub Desktop.
Save AllGistsEqual/8c1ecd23a04acc51025bb2ab89d4a1b4 to your computer and use it in GitHub Desktop.
export const selectLogin = (state: RootState): boolean => state.user.login
export const selectIsSubmitting = (state: RootState): boolean => state.user.loginState === 'loading'
export const selectLoginMessage = (state: RootState): string | undefined => state.user.message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment