apollo client disable inmemorycache

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

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