Answers for "apollo clear cache for query"

0

apollo clear cache for query

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