Step 8's step 8.1 type-error
TVaakanainen opened this issue · comments
Type 'MutationFn<unknown, OperationVariables>' is not an array type. TS2461
69 | });
70 |
> 71 | const [addMessage] = useMutation(addMessageMutation);
| ^
72 |
73 | const onSendMessage = useCallback(
74 | (content: string) => {
I think line 71 should actually be const addMessage = useMutation(addMessageMutation);
Also on step 8.2 on ChatList test update import for getChatsQuery should be removed as on the next code-block it is completely removed.
Experiencing same issue!
@TVaakanainen @milenazuccarelli what version of react-apollo-hooks
are you using?
I believe that on the latest version (0.5.0) it is suppose to work like that
@TVaakanainen about the import, can you point me to the line of code? I couldn't fully understand what you meant
We've now moved to the new @apollo/react-hooks