Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GITC-502: infinite-scroll-stops-working-after-applying-filter #9720

Conversation

jeremyschuurmans
Copy link
Contributor

Description

This PR fixes a bug where infinite scroll would break after applying filters to the results in the grants explorer.

The issue was that before the next page of results would be fetched from the API, the app would check to make sure that it had not been fetched already. Before the initial fetch, !pageIsFetched returns true, and so the fetch will proceed. After the initial fetch, !pageIsFetched returns false, preventing subsequent pages from being fetched.

Removing the pageIsFetched check resolves this issue.

Screen.Recording.2021-11-23.at.10.25.49.AM.mov
Refers/Fixes
Testing

@jeremyschuurmans jeremyschuurmans changed the title remove pageIsFetched check GITC-502: infinite-scroll-stops-working-after-applying-filter Nov 23, 2021
@gdixon gdixon merged commit d60e9e3 into master Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants