I’d like to improve my understanding of the ‘cache-and-network’ fetchPolicy.
From the docs:
Apollo Client executes the full query against both the cache and your GraphQL server. The query automatically updates if the result of the server-side query modifies cached fields.
Okay, I think I get that. Apollo Client will query the server and the cache and merge any new results from the server into the cache.
Provides a fast response while also helping to keep cached data consistent with server data.
This is the part about which I need to improve my understanding. If it first displays the cached result, and then gets a different result back from the server, do I need to detect that and do something to refresh my component to show the updated results?