Closed
Description
This issue tracks the docs items that weren't completed in #6429.
TODO:
- Refactor all pagination documentation
-
DeprecatefetchMode
'supdateQuery
, replacing with field policies (Deprecate fetchMore updateQuery function, and provide basic field policy helper functions #6464) -
Explain whatkeyArgs: false
does- See https://deploy-preview-7175--apollo-client-docs.netlify.app/docs/react/pagination/key-args/
/6852#issuecomment-674984235)
- See https://deploy-preview-7175--apollo-client-docs.netlify.app/docs/react/pagination/key-args/
-
@apollo/client/core
,@apollo/client/utilities
,@apollo/client/testing
,@apollo/client/cache
, etc. entry points -
Properly explain howcache.writeQuery/Fragment
broadcasting can be silenced using thebroadcast
option (and what the advantages are to doing so - reference: Allow silencing broadcast for cache update methods. #6288) 👉 adds broadcast false details #9978 -
Explain how to usecache.performTransaction()
to batch writes without broadcasting until they've all finished.cache.batch
(introduced in Introduce new cache.batch(options) method for InMemoryCache. #7819) provides a better API and essentially wrapsperformTransaction
, so it’s the one we should recommend people use. 👉 Cache.batch docs #9987 -
Documentmerge: false
(e.g. Warn when clobbering non-normalized data in the cache. #6372 (comment)) 👉 Field policy merge docs #9969 -
DocumentuseReactiveVar
(Implement useReactiveVar hook for consuming reactive variables in React components. #6867) 👉 Use reactive var hook #9906 -
Document type policy inheritance, usingpossibleTypes
(Support inheritance of typePolicies, according to possibleTypes. #7065) 👉 Type policy inheritance #9905 -
Document custom merge function support in type policies (Allow custom merge functions (including merge:true and merge:false) in type policies. #7070) -
Explain how to properly test local state usingMockedProvider
, by passing a configuredcache
intoMockedProvider
itself (MockedProvider not returning data when @client is specified #4532)PR
Mockprovider docs updates #9867 -
Remove deprecated language from dataIdFromObject Remove deprecated language fromdataIdFromObject
#9817 - updateQuery documentation error updateQuery documentation error #9832
- Missing docs about aborted requests for V3 Missing docs about aborted requests for V3 #9882
- Potential Missing docs for
MyQueryInterface
(typescript): Request for adding different types(interfaces) for the query data from useQuery and subscribeToMore data #9946 - Allow registering named fragments with InMemoryCache to support using ...FragmentName in queries without redeclaring FragmentName in every query Allow registering named fragments with
InMemoryCache
to support using...FragmentName
in queries without redeclaringFragmentName
in every query #9764 - Avoid letting defaultDataIdFromObject normalize objects with nullish ids Avoid letting
defaultDataIdFromObject
normalize objects with nullish ids #9862