const NewVerificationCode = () => {
const { loading, error, data = {}, refetch } = useQuery(CONFIRMATION_CODE, {
skip: true,
notifyOnNetworkStatusChange: true,
fetchPolicy: "no-cache",
});
return <div onClick={() => refetch()}>CONFIRMATION</div>;
};
const CONFIRMATION_CODE = gql`
query {
my {
sendNewTokenForConfirmation
}
}
`;