Skip to content

doc: Use effect and set items for signal bindings#5370

Merged
Legioth merged 4 commits intomainfrom
remove-bind-items-method
Mar 20, 2026
Merged

doc: Use effect and set items for signal bindings#5370
Legioth merged 4 commits intomainfrom
remove-bind-items-method

Conversation

@mshabarov
Copy link
Copy Markdown
Contributor

Related-to vaadin/flow#23659

@mshabarov mshabarov force-pushed the remove-bind-items-method branch from d4ba298 to d748635 Compare March 19, 2026 07:42
@mshabarov mshabarov force-pushed the remove-bind-items-method branch from d748635 to 4e0211a Compare March 19, 2026 07:44
@mshabarov mshabarov requested a review from Legioth March 19, 2026 07:44
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 19, 2026

Preview Deployment

This PR has been deployed for preview.

URL: https://docs-preview-pr-5370.fly.dev

Built from c44e023

- *Individual item changes* (updating a value within a signal): Triggers [methodname]`refreshItem()` for only the affected item

This two-level tracking means individual item updates are efficient—only the affected row is refreshed in a Grid, for example.
This pattern refreshes the entire data set with [methodname]`DataProvider.refreshAll()` when any change occurs to the list signal's structure or individual item signal. The framework doesn't yet provide a dedicated helper for binding items to data components. A support for more efficient item's granular updates and lazy loaded items bindings is planned in future releases.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

refreshAll is an implementation detail. From the user's perspective, the full refresh comes from running setItems again.

@mshabarov mshabarov requested a review from Legioth March 20, 2026 07:44
@Legioth Legioth merged commit 827ebb7 into main Mar 20, 2026
7 checks passed
@Legioth Legioth deleted the remove-bind-items-method branch March 20, 2026 08:32
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