Skip to content

Conversation

@mcollovati
Copy link
Contributor

@mcollovati mcollovati commented Jan 15, 2026

When a TreeGrid node was expanded and then collapsed before data arrived from a slow data provider, subsequent expansion attempts would show no children. This was caused by the grid's sub-cache retaining a size of 0 from the cancelled request.

The fix removes the sub-cache when collapsing an item with pending requests, allowing fresh data to be fetched on re-expand.

Fixes vaadin/flow#21731

@CLAassistant
Copy link

CLAassistant commented Jan 15, 2026

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

When a TreeGrid node was expanded and then collapsed before data
arrived from a slow data provider, subsequent expansion attempts
would show no children. This was caused by the grid's sub-cache
retaining a size of 0 from the cancelled request.

The fix removes the sub-cache when collapsing an item with pending
requests, allowing fresh data to be fetched on re-expand.

Fixes vaadin/flow#21731
@mcollovati mcollovati force-pushed the issues/21731-tree_grid_quick_expand_collapse_fails_v24 branch from f38854d to 995fd27 Compare January 15, 2026 11:47
@sonarqubecloud
Copy link

@yuriy-fix yuriy-fix changed the title fix: TreeGrid children not showing after quick expand/collapse (24.9) fix: TreeGrid children not showing after quick expand/collapse (24.9) [0.5 days] Jan 16, 2026
@vursen vursen self-requested a review January 16, 2026 09:42
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.

Paginated tree grid fails to display items if rapidly collapsed

3 participants