network-only fetch for link title

This commit is contained in:
keyan 2021-10-27 11:03:43 -05:00
parent 945225d205
commit 4421dd6e6e

View File

@ -29,7 +29,9 @@ export function LinkForm ({ item, editThreshold }) {
const [getPageTitle, { data }] = useLazyQuery(gql`
query PageTitle($url: String!) {
pageTitle(url: $url)
}`)
}`, {
fetchPolicy: 'network-only'
})
const router = useRouter()
const [createLink] = useMutation(
gql`