Skip to content

js: Do not trigger rendered for unchanged content#5505

Draft
nilmerg wants to merge 1 commit intomainfrom
fix/rendered-event-triggered-without-content-change-5377
Draft

js: Do not trigger rendered for unchanged content#5505
nilmerg wants to merge 1 commit intomainfrom
fix/rendered-event-triggered-without-content-change-5377

Conversation

@nilmerg
Copy link
Copy Markdown
Member

@nilmerg nilmerg commented May 8, 2026

The request object now holds a set that is populated with elements that were updated during onResponse. onComplete now uses it to trigger the rendered event on each entry.

Note that for multipart updates the way the event is triggered has changed slightly. Since multipart updates usually do not contain nested containers, the updated parts never triggered the event and only the main container did. I figured this might be useful, but it isn't necessary to fix the referenced issue.

fixes #5377

--

Still need to check which of our native listeners are affected by this.

The request object now holds a set that is populated with
elements that were updated during ´onResponse`. `onComplete`
now uses it to trigger the `rendered` event on each entry.

Note that for multipart updates the way the event is triggered
has changed slightly. Since multipart updates usually do not
contain nested containers, the updated parts never triggered
the event and only the main container did. I figured this
might be useful, but it isn't necessary to fix the referenced
issue.

fixes #5377
@nilmerg nilmerg added area/javascript Affects the javascript framework affects-upgrades The change requires migration or user awareness labels May 8, 2026
@cla-bot cla-bot Bot added the cla/signed label May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

affects-upgrades The change requires migration or user awareness area/javascript Affects the javascript framework cla/signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rendered event is triggered even though content has not changed

1 participant