You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using @defer directive with Apollo Client, the cache becomes inconsistent after deleting an item and refetching. While the server returns the correct data after deletion and refetch, the UI renders duplicate entries of the remaining items.
Issue Description
Description
When using
@defer
directive with Apollo Client, the cache becomes inconsistent after deleting an item and refetching. While the server returns the correct data after deletion and refetch, the UI renders duplicate entries of the remaining items.Example query demonstrating
@defer
usage:Expected Behavior
(Refers to screenshots in Reproduction steps)
After deletion and refetch, UI should display only the remaining items matching the server response.
Actual Behavior
UI displays duplicate entries of remaining items, despite server returning correct data.
Additional Context
@defer
directivecache.modify()
resolve the issueLink to Reproduction
https://github.com/timofarei/apollo-gql-incremental-delivery-refetch-bug
Reproduction Steps
@apollo/client
version3.12.4
The text was updated successfully, but these errors were encountered: