apollographql / apollo-client

:rocket:  A fully-featured, production ready caching GraphQL client for every UI framework and GraphQL server.
https://apollographql.com/client
MIT License
19.38k stars 2.66k forks source link

[Data masking] Suspend `useFragment` when a deferred fragment is pending #11679

Open jerelmiller opened 8 months ago

jerelmiller commented 8 months ago

Create the detection mechanism to determine if/when a fragment is pending and suspend the component.

NOTE: This work does not include checking the source of the query to see if it originated from a suspenseful hook. This is captured in a separate issue.

jerelmiller commented 6 days ago

This won't be part of the initial data masking release but will be introduced in a future version. I'm moving it out of the milestone for now.