Created
October 14, 2020 17:50
-
-
Save JoviDeCroock/7a173ba3dbf377f71197baf88e5dab00 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useClient } from 'urql'; | |
export const ComponentThatWontRerender = () => { | |
const client = useClient(); | |
const mutate = async () => { | |
const result = await client.mutate(...).toPromise() | |
console.log(result) | |
} | |
return <PoseMirror /> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment