doug_w
05/12/2017, 6:56 PMcreateUser function inside of components/CreateUser like so ->
createUser = () => {
const variables = {
noArgsTest: "Thats right"
}
this.props.createUser({ variables })
.then((response) => {
this.props.router.replace('/')
}).catch((e) => {
console.error(e)
this.props.router.replace('/')
})
}
And this does not throw an error or affect anything at all 😕