Answers for "apoolo uselaxyQuery bypass cache"

-1

apoolo uselaxyQuery bypass cache

const { data: cachedData } = useQuery(MyQuery, { fetchPolicy: 'cache-only', variables });
const [executeMyQuery, { data: queryData, loading, error }] = useLazyQuery(MyQuery, {
  fetchPolicy: 'network-only'
});
const data = queryData || cachedData;
Posted by: Guest on October-15-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language