Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement