Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Apollo Client disable inMemoryCache

const defaultOptions: {
      watchQuery: {
        fetchPolicy: 'no-cache',
        errorPolicy: 'ignore',
      },
      query: {
        fetchPolicy: 'no-cache',
        errorPolicy: 'all',
      },
    }

const client = new ApolloClient({
    link: concat(authMiddleware, httpLink),
    cache: new InMemoryCache(),
    defaultOptions: defaultOptions,

});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Apollo #Client #disable #inMemoryCache
ADD COMMENT
Topic
Name
4+5 =