Skip to content

Conversation

vursen
Copy link
Contributor

@vursen vursen commented Jul 16, 2025

Description

The $connector.clearExpanded method was introduced during the migration of TreeGrid from Vaadin Framework 8 in vaadin/vaadin-grid-flow#241. However, its current purpose is unclear, as there appears to be no scenario in which expanded items are cleared by the data communicator without also invoking $connector.collapseItems on the client.

Part of #7688

Type of change

  • Refactor

@vursen vursen marked this pull request as ready for review July 16, 2025 05:46
@vursen vursen requested review from sissbruecker, web-padawan and DiegoCardoso and removed request for web-padawan July 16, 2025 05:47
Copy link
Contributor

@DiegoCardoso DiegoCardoso left a comment

Choose a reason for hiding this comment

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

I wonder what should be done with the getter and setter for hasExpandedItems in UpdateQueueData, as their only usage in the codebase is being removed in this PR.

@vursen
Copy link
Contributor Author

vursen commented Jul 16, 2025

as their only usage in the codebase is being removed in this PR.

Good question. I was planning to deprecate and remove it in Vaadin 25 as the next step. Any concerns?

@DiegoCardoso
Copy link
Contributor

Good question. I was planning to deprecate and remove it in Vaadin 25 as the next step. Any concerns?

I think it makes sense to deprecate it, if you're not planning to use it anymore.

@vursen vursen enabled auto-merge (squash) July 16, 2025 13:56
Copy link

@vursen vursen merged commit 4991d39 into main Jul 16, 2025
5 checks passed
@vursen vursen deleted the remove-clear-expanded-logic branch July 16, 2025 14:16
@vursen vursen linked an issue Aug 22, 2025 that may be closed by this pull request
4 tasks
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.

Deprecate legacy TreeGrid APIs
2 participants