Hi all,
Is it possible to set/switch a fetchPolicy
let’s say from network-only
to cache-and-network
using a ternary operator e.g
const userAction = true
const randomQuery = useQuery(RANDOM_QUERY,{
fetchPolicy: userAction ? 'network-only': 'cache-and-network'
})