Closed morrys closed 3 years ago
related: https://github.com/relay-tools/relay-hooks/pull/141
// good const [mutate] = useMutation(mutation); mutate({variables: {}}); // error const [mutate] = useMutation(mutation); mutate({}); // good const [mutate] = useMutation(mutation, {variables: {}}); mutate(); // good const [mutate] = useMutation(mutation, {variables: {}}); mutate({variables: {}});
@andrehsu if you can take a look at this PR 👍
@morrys looks good to me
related: https://github.com/relay-tools/relay-hooks/pull/141
@andrehsu if you can take a look at this PR 👍