Skip to content

Conversation

CharlesTaylor7
Copy link
Contributor

@CharlesTaylor7 CharlesTaylor7 commented Apr 18, 2025

This ensures mutation observers always are passing both current and previous values.

That feature was already working for mutation value of "characterData" or "attributes", but now it will handle do this when listening to both via the "anything" keyword.

Relevant docs for the browser API:
https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/observe#parameters

@CharlesTaylor7 CharlesTaylor7 changed the title Patch mutation observer Always send previous values through Mutation Observer callbacks Apr 18, 2025
@1cg
Copy link
Contributor

1cg commented Jun 16, 2025

Hi @CharlesTaylor7 can I ask for a test for this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants