Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix initial infinite swr request for pages > 1 (#367)
In case more than 1 page was requested for the initial request, there was a problem in case the first page already had no results. In that case the request for the second page always returned with the "isLoadMore" and "isLoading" flag set to true. Thus, incorrectly indicating that the request is still active. The "actual" request was already finished, but internally the "isLoadMore" flag was set incorrectly due to not considering if an actual request is active.
- Loading branch information