Patch Changes
- Prevent
ssrExchange().restoreData()
from adding results to the exchange that have already been invalidated. This may happen whenrestoreData()
is called repeatedly, e.g. per page. When a prior run has already invalidated an SSR result then the result is 'migrated' to the user'scacheExchange
, which means thatrestoreData()
should never attempt to re-add it again, by @kitten (See #1776) - ⚠️ Fix accidental change in passive
stale: true
, where acache-first
operation issued by Graphcache wouldn't yield an affected query and update its result to reflect the loading state withstale: true
. This is a regression fromv2.1.0
and mostly becomes unexpected whencache.invalidate(...)
is used, by @kitten (See #1755)