Major Changes
-
#12450
876d070
Thanks @jerelmiller! - RemoveTSerialized
generic argument toApolloCache
. TheApolloCache
base cache abstraction now returnsunknown
forcache.extract
which can be overridden by a cache subclass. -
#12450
876d070
Thanks @jerelmiller! - Remove theTCacheShape
generic argument toApolloClient
.client.extract()
now returnsunknown
by default. You will either need to type-cast this to the expected serialized shape, or use thecache.extract()
directly from the subclass to get more specific types. -
#12446
ab920d2
Thanks @jerelmiller! - Removes thedefaultOptions
option fromuseQuery
. Use options directly or use the globalApolloClient
defaultOptions
. -
#12442
c5ead08
Thanks @jerelmiller! - Remove the deprecatedcanonizeResults
option. It was prone to memory leaks. As such, some results that were referentially equal whencanonizeResults
option was set totrue
no longer retain the same object identity. -
#12442
c5ead08
Thanks @jerelmiller! - RemoveresetResultIdentities
option fromInMemoryCache.gc()
. This affected object canonization which has been removed. -
#12451
77e1b13
Thanks @jerelmiller! - Default theTData
generic type tounknown
in all APIs that use aTData
generic argument such asuseQuery
,client.query
, etc.