Closed asvishnyakov closed 7 months ago
Released in 0.15.0.
Please let me know if the version is acting weird. There were multiple major releases of the bundling and other dev tools since the last release and even though I tested in my projects, I'm not sure all setups work the same they did with 0.14.
@wodCZ Thank you! But GitHub Release wasn't created, if it should.
component 1
which callquery 1
which putobject 1
to cachecomponent 2
which callquery 2
(now it's active) which putobject 2
to cache.cache.gc()
. Becausequery 1
is not longer active,object 1
will be removed from cache and onlyobject 2
left.But because
apollo-cache-persist
doesn't callpersist
on garbage collection,object 1
will be left on persistence layer and restored back on app reload. It will never be removed from that until we manually callcache.evict
. It doesn't allow to use automatic garbage collection withapollo-cache-persist
and require manual cache management for effectiveness.