I'm in the process of migrating from unofficial hooks to official apollo-hooks, and when I use the useMutation hook, the onError function fires and returns the following error: Network error: null is not an object (evaluating '_ref2.token)
![[FIXED] useMutation error apollo-hooks](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3otvb2z646ytpt1hl2rv.jpg)
I'm in the process of migrating from unofficial hooks to official apollo-hooks, and when I use the useMutation hook, the onError function fires and returns the following error: Network error: null is not an object (evaluating '_ref2.token)