const Darko = () => {
const history = useHistory();
const [logout, { loading, error }] = useMutation(LOGOUT, {
onCompleted: () => {
history.push("/");
globalThis.location.reload();
},
fetchPolicy: "no-cache",
});
return <div>...</div>}