score:0

Accepted answer

this can be an answer to your question :

change this :

addchannel({
      variables: {
          token: props.match.params.token
      }
  })

by :

useeffect(() => {addchannel({
      variables: {
          token: props.match.params.token
      }
  })}, []);

Related Query

More Query from same tag