relayStylePagination
concatenates edges when a query using after
is repeated
#9802
Labels
relayStylePagination
concatenates edges when a query using after
is repeated
#9802
Intended outcome:
If you use
relayStylePagination
with a query that usesafter
, and the same query is performed twice with the same value ofafter
, the incoming edges should replace the existing edges.Actual outcome:
If you use
relayStylePagination
with a query that usesafter
, and the same query is performed twice with the same value ofafter
, the incoming edges are concatenated to the existing edges. Now your paginated list shows the same page of data twice.How to reproduce the issue:
Run the test in PR #9803.
Versions
Tested in the apollo-client repository as of 538b795.
The text was updated successfully, but these errors were encountered: