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
{{ message }}
This repository was archived by the owner on May 17, 2018. It is now read-only.
As discovered in #136 and #139, a state shouldn't be sent down from the server. The totalRecords and related states will be calculated when the new records are added to the fullCollection after fetch, thus totalRecords must and should always be equal to fullCollection.length under infinite mode. If parseLinks tries to be too smart, the state has already been updated in parseLinks, the subsequent fullCollection.add operation after fetching has the potential to give the wrong result. The behavior is too surprising.
As discovered in #136 and #139, a state shouldn't be sent down from the server. The
totalRecordsand related states will be calculated when the new records are added to thefullCollectionafter fetch, thustotalRecordsmust and should always be equal tofullCollection.lengthunder infinite mode. IfparseLinkstries to be too smart, the state has already been updated inparseLinks, the subsequentfullCollection.addoperation after fetching has the potential to give the wrong result. The behavior is too surprising.