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
{{ message }}
This repository was archived by the owner on Aug 30, 2019. It is now read-only.
Update cache logic to create a new cache per request (#166)
Migration Guide
Update ApolloClientCacheToken to GetApolloClientCacheToken
This fixes an issue where the server side cache could be shared across
requests. If you were not registering a custom cache implementation, you can
upgrade with no code changes. The default caching mechanism is InMemory.
-import {ApolloClientCacheToken} from 'fusion-apollo-universal-client'+import {GetApolloClientCacheToken} from 'fusion-apollo-universal-client'-app.register(ApolloClientCacheToken, new InMemoryCache());+app.register(GetApolloClientCacheToken, (ctx: Context) => new InMemoryCache());