Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. export default
  2. @withCookies
  3. @withRouter
  4. @connect(
  5. state => {
  6. return {
  7. token: state.auth.token,
  8. currentUser: state.auth.currentUser
  9. };
  10. },
  11. dispatch => ({
  12. dispatch
  13. })
  14. )
  15. @graphql(meGql, {
  16. props: ({ data: { loading, me, error } }) => ({
  17. userLoading: loading,
  18. errorCurrentUser: error,
  19. currentUser: me
  20. })
  21. })
  22. class CurrentUser extends Component {
  23.  
  24. // now TEST me cowboy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement