Skip to content

docs: note refreshAll after TreeData mutations #19327 - #25606

Merged
mcollovati merged 3 commits into
vaadin:mainfrom
AzazelSensei:docs/treedata-refreshall-19327
Sep 10, 2026
Merged

docs: note refreshAll after TreeData mutations #19327#25606
mcollovati merged 3 commits into
vaadin:mainfrom
AzazelSensei:docs/treedata-refreshall-19327

Conversation

@AzazelSensei

Copy link
Copy Markdown
Contributor

Fixes #19327

DX/docs · flow-data · apps that mutate TreeData under TreeGrid

setParent and moveAfterSibling already say to call
TreeDataProvider.refreshAll(). addItem, removeItem and the other
mutating methods did not, so drag-and-drop samples that only update
TreeData look like a no-op.

I added the same refreshAll note on the class and on every mutating
method.

Risks:

  • javadoc only

  • Note refreshAll on TreeData and on add/remove/clear/addItems

@mcollovati mcollovati added the Contribution PRs coming from the community or external to the team label Sep 10, 2026
Comment thread flow-data/src/main/java/com/vaadin/flow/data/provider/hierarchy/TreeData.java Outdated
Co-authored-by: Marco Collovati <mcollovati@gmail.com>
mcollovati
mcollovati previously approved these changes Sep 10, 2026
@mcollovati
mcollovati added this pull request to the merge queue Sep 10, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 10, 2026
@mcollovati
mcollovati added this pull request to the merge queue Sep 10, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 10, 2026
@mcollovati
mcollovati added this pull request to the merge queue Sep 10, 2026
Merged via the queue into vaadin:main with commit c299a4c Sep 10, 2026
36 checks passed
vaadin-bot added a commit that referenced this pull request Sep 10, 2026
…5.3) (#25646)

This PR cherry-picks changes from the original PR #25606 to branch 25.3.
---
#### Original PR description
> Fixes #19327
> 
> **DX/docs** · flow-data · apps that mutate TreeData under TreeGrid
> 
> setParent and moveAfterSibling already say to call
> TreeDataProvider.refreshAll(). addItem, removeItem and the other
> mutating methods did not, so drag-and-drop samples that only update
> TreeData look like a no-op.
> 
> I added the same refreshAll note on the class and on every mutating
> method.
> 
> **Risks:**
> - javadoc only
> 
> - Note refreshAll on TreeData and on add/remove/clear/addItems
>

Co-authored-by: Abdullah <89297042+AzazelSensei@users.noreply.github.com>
Co-authored-by: Marco Collovati <mcollovati@gmail.com>
Co-authored-by: Marco Collovati <marco@vaadin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked-25.3 Contribution PRs coming from the community or external to the team target/25.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TreeGrid w/TreeData and Drag & Drop does not internally update. See video.

3 participants