apollo-cache-policies icon indicating copy to clipboard operation
apollo-cache-policies copied to clipboard

An extension of the Apollo 3 cache with support for advanced cache policies.

Results 17 apollo-cache-policies issues
Sort by recently updated
recently updated
newest added

Depends on https://github.com/apollographql/apollo-client/pull/7645. Some of these imports are doable today; some are not exposed by Apollo Client via cjs yet. Also, `npm run format` had some misc changes...

``` Compiled with problems: ERROR in ./node_modules/@nerdwallet/apollo-cache-policies/dist/hooks/useFragmentWhere.js 21:22-77 Module not found: Error: Can't resolve '@apollo/client/react/hooks/utils/useDeepMemo' ```

When we use the `timeToLive` setting, entities seem to be expiring in the cache — but, after expiring, even though the query is correctly firing a network call again the...

after creating the ApolloClient with the cache from `apollo-cache-policies`, I don't know how to verify if the cache ttl is actually working. Can anyone share how to verify it?

You guys are fantastic for providing this package. I'd like to use this project outside of a react application, which apollographql/apollo-client supports. Could you follow the lead of apollographql/apollo-client to...

cache.ts ``` import { InvalidationPolicyCache, RenewalPolicy, } from '@nerdwallet/apollo-cache-policies'; import {offsetLimitPagination} from '@apollo/client/utilities'; import AsyncStorage from '@react-native-async-storage/async-storage'; import {persistCache} from 'apollo3-cache-persist'; //types import {Gender, Message, MessagesQuery} from '../../_generated/graphql'; import {stores}...

If I have a type, with fields: id, fieldA and fieldB, assume the TTL is 10 seconds. Assume I cached fieldA at time 5s, and cached fieldB at time 10s....