Last active
July 10, 2019 09:37
-
-
Save radzserg/7cd06bb2c853e72aac21c12c69442fb2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| export default | |
| @withCookies | |
| @withRouter | |
| @connect( | |
| state => { | |
| return { | |
| token: state.auth.token, | |
| currentUser: state.auth.currentUser | |
| }; | |
| }, | |
| dispatch => ({ | |
| dispatch | |
| }) | |
| ) | |
| @graphql(meGql, { | |
| props: ({ data: { loading, me, error } }) => ({ | |
| userLoading: loading, | |
| errorCurrentUser: error, | |
| currentUser: me | |
| }) | |
| }) | |
| class CurrentUser extends Component { | |
| // now TEST me cowboy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment