web: use Apollo Client for two slowest GraphQL queries
Created by: valerybugakov
Context
Preparation to land https://github.com/sourcegraph/sourcegraph/pull/23351, where Apollo Client persistent cache will be enabled.
Changes
- Added helpers to convert Apollo Client
ObservableQuery
torxjs
observables. - Applied
fromObservableQuery
helperServersideSettingsBackend.load()
. - Use Apollo Client to fetch
ExtensionsRegistry
andViewerSettings