Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix an error that the networkStatus did not change to ready at the end of pagination #3514
Although #3433 has improved performance by reducing the number of renders in pagination, it only works when the fetchMore function returns a new list.
If we reached to the end of the list, the fetchMore function returns the same length of result, which is determined as equal by the @wryware/equality library we currently use. Therefore, reading the last page of the list remains
I think apollo-client needs to send the updated fetchMore result and the changed networkStatus at once.