You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary: ApolloClient is a generic class which expects a TCacheShape type argument. When using Hermes, that cache shape type (appears to be) GraphSnapshot.
Expected Behavior: GraphSnapshot should be exported so that end users can use it where required/expected by Apollo classes / tools.
Actual Behavior: GraphSnapshot is not exported.
Example code which does not currently work:
constlink=newWebSocketLink(newSubscriptionClient(WS_URI,{reconnect: true,}),);constcache=newHermes({addTypename: true});// ERROR! `GraphSnapshot` is not exported!constoptions: ApolloClientOptions<GraphSnapshot>={ link, cache };
The text was updated successfully, but these errors were encountered:
Summary:
ApolloClient
is a generic class which expects aTCacheShape
type argument. When usingHermes
, that cache shape type (appears to be)GraphSnapshot
.Expected Behavior:
GraphSnapshot
should be exported so that end users can use it where required/expected by Apollo classes / tools.Actual Behavior:
GraphSnapshot
is not exported.Example code which does not currently work:
The text was updated successfully, but these errors were encountered: