Is there a way to configure the default fetchPolicy to be `cache-and-network`…
July 1, 2020 at 8:48pmIs there a way to configure the default fetchPolicy to be `cache-and-network` for useQuery?
July 1, 2020 at 8:48pm (Edited 7 months ago)When instanciating the Apollo client, you can provide fetch policies for
query
, watchQuery
and mutation
. The docs mention that the Query
component uses watchQuery
. As the useQuery
hook isn’t mentioned as well, this implies useQuery
uses query
instead, but cache-and-Network
is no valid fetchPolicy for query
.Any pointers?