Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: prevent unnecessary page fetches when scrolling to index #2203

Merged
merged 1 commit into from
Dec 20, 2021

Conversation

sissbruecker
Copy link
Contributor

Description

Fixes the grid running into an infinite loop of data provider requests / scroll requests, when clearing items from the cache. This issue occurs in the Flow component, which clears items from the cache after loading new pages. This lead to the web component's scrollToIndex function to request the items for the previous viewport again, when then in turn causes the Flow component to clear the cache for the new viewport...and so on. The fix is to ensure that the grid does not request items for the previous viewport.

Fixes vaadin/flow-components#2352

Type of change

  • Bugfix

@sissbruecker sissbruecker force-pushed the fix/prevent_unnecessary_page_fetches branch from 5cbdc32 to 5a7d5b7 Compare December 20, 2021 11:56
@sissbruecker sissbruecker force-pushed the fix/prevent_unnecessary_page_fetches branch from 5a7d5b7 to 6be408c Compare December 20, 2021 17:21
@sissbruecker sissbruecker merged commit 0777972 into master Dec 20, 2021
@sissbruecker sissbruecker deleted the fix/prevent_unnecessary_page_fetches branch December 20, 2021 19:12
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Grid scroll issue when loading thousand rows with lazy loading.
2 participants