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
If the client is paginating with first/after, then the client may return true if edges prior to after exist, if it can do so efficiently, otherwise may return false
However, hasPreviousPage is always false when using first/after:
Summary
Using forward pagination (first/after) with
connectionFromArray
results in incorrectpageInfo
.Description
From the relay spec
hasPreviousPage
states:However,
hasPreviousPage
is always false when usingfirst
/after
:The tests also seem to be incorrect as well.
Expectation
hasPreviousPage
should betrue
when forward pagination arguments are used. There is enough information to calculate if edges prior to after exist.The text was updated successfully, but these errors were encountered: