web: add `getGraphQLClient` to the `platformContext`
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: valerybugakov
Preparation to land https://github.com/sourcegraph/sourcegraph/pull/23351. To leverage Apollo-Client cache in different parts of the app, we need to make it available everywhere without global imports. Similar to distributing the requestGraphql
function, we can now access getGraphQLClient
from the platformContext
.
getGraphQLClient
to the platformContext
.fetchPolicy
was cache-first.client.watchQuery
now uses cache-and-network policy.client.query
uses network-only policy.fetchPolicy
in places where it makes sense through query options.
Push commits to the source branch or add previously merged commits to review them.