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

Flush debounceIncreasePool on loadPage if scrolling #2131

Merged
merged 3 commits into from
Feb 18, 2021

Conversation

tulioag
Copy link
Contributor

@tulioag tulioag commented Feb 16, 2021

Fixes #2107

@tulioag tulioag requested a review from tomivirkki February 16, 2021 16:14
@@ -345,7 +345,9 @@
filters: this._mapFilters(),
parentItem: cache.parentItem
};

if (this.__scrollingToPendingIndex && this._debounceIncreasePool) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new __scrollingToPendingIndex property feels a bit hacky? Is there some other justification for adding it other than making that one data-provider test pass / should the increase pool debouncer not be flushed while the grid is scrolling to pending index?

I took a look at the failing test case and it seems to pass because of timing. If I wrap the last expect inside of a timeout of 1 second, it also fails on master due to a too large call count. I don't necessarily see it as a problem to increase the call count expectation to make the test pass with the new change in timing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@tulioag tulioag force-pushed the fix/2107_TreeGrid_regression_since_14_4_3 branch from 8c6c954 to d9cb509 Compare February 17, 2021 16:01
@tulioag tulioag merged commit c3e75b8 into 5.7 Feb 18, 2021
@tulioag tulioag deleted the fix/2107_TreeGrid_regression_since_14_4_3 branch February 18, 2021 11:06
tulioag added a commit that referenced this pull request Feb 18, 2021
cherrypick: #2131
fixes: #2107
Warranty: Fixes TreeGrid regression where blank areas are displayed when an initial scroll happens.
tulioag added a commit that referenced this pull request Feb 18, 2021
fix: Flush debounceIncreasePool on loadPage

cherrypick: #2131
fixes: #2107
Warranty: Fixes TreeGrid regression where blank areas are displayed when an initial scroll happens.
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