Created
December 4, 2017 10:57
-
-
Save vouill/2b2f623cf3da8d725d8b2d6eb53d2b05 to your computer and use it in GitHub Desktop.
Getters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getters = { | |
isAuthenticated: state => !!state.token, | |
authStatus: state => state.status, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment