apollo client disable inmemorycache

Solutions on MaxInterview for apollo client disable inmemorycache by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "apollo client disable inmemorycache"
Tomas
21 Jan 2018
1const defaultOptions: {
2      watchQuery: {
3        fetchPolicy: 'no-cache',
4        errorPolicy: 'ignore',
5      },
6      query: {
7        fetchPolicy: 'no-cache',
8        errorPolicy: 'all',
9      },
10    }
11
12const client = new ApolloClient({
13    link: concat(authMiddleware, httpLink),
14    cache: new InMemoryCache(),
15    defaultOptions: defaultOptions,
16
17});
18