apollo-cache-policies
apollo-cache-policies copied to clipboard
An extension of the Apollo 3 cache with support for advanced cache policies.
Hello, after upgrade from 2.4.1 to 2.6.0 on quasar based project, I'm getting error about missing `react` dependency: ``` App • ERROR • Client-side in ./node_modules/@apollo/client/react/context/ApolloConsumer.js Module not found: Can't...
Thanks for this library, this truly solves a major gap in the apollo caching realm! We've been using this pkg with apollo-cache-persist for a bit now, but only in a...
Hey @danReynolds, When you have a TTL entity e.g a `Person` and then have a root query e.g `GetPeople`, if any of the underlying entities under that query expire then...
## Overview This PR raises helper functions as defined in issue #54. * readEntity - returns the entityTypeMap values for id * readEntityExpired - returns boolean as to whether entity...
Hi, before I raise a PR I would love to add the following possible improvements: 1. Add an `isExpired` helper to return a boolean as to whether TTL has passed...
Hello How do you make sure that makeCachedVar doesn't overwrite the existing value if there is one in the cache? I am not sure how you would initialize something without...
Feature request extracted from https://github.com/NerdWalletOSS/apollo-cache-policies/issues/39#issuecomment-973063659. As I was looking into adopting this plugin I assumed that data which had been invalidated (but not yet garbage collected/evicted from the cache) would...
I'm wondering if there is any reason that this module is being built using "commonjs" in the tsconfig? ``` "compilerOptions": { ... "module": "commonjs" /* Specify module code generation: 'none',...
Adds the ability to specify a fragmentName to `useFragment` and `useFragmentWhere` so that you are able to include other helper fragments when using those APIs
Hey :wave: I'd very much like to use this package as it seems to be the first piece of reusable code I've found that could actually make using apollo3-cache-persist viable...