Skip to content

Instantly share code, notes, and snippets.

@JoviDeCroock
Created October 14, 2020 17:50
Show Gist options
  • Save JoviDeCroock/7a173ba3dbf377f71197baf88e5dab00 to your computer and use it in GitHub Desktop.
Save JoviDeCroock/7a173ba3dbf377f71197baf88e5dab00 to your computer and use it in GitHub Desktop.
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