sindresorhus

dom-mutations

Observe changes to the DOM using an async iterable — A nicer API for MutationObserver

by sindresorhus

JavaScript

JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
Richienb

I don't know if we need this Once again I would like to apologise for not thinking of this in the first two

Richienb · 1y ago
Richienb

It turns out this problem happens for both functions, sorry! To fix this, we pass the signal down to the batched version, which will run the cleanup. This solution doesn't feel idiomatic, and that's because you're not intended to manually call . Rather, you implicitly call it when you do from within the loop, at which point a value would have needed to be produced so that the loop would run.

Richienb · 1y ago
Structured data for AI agents

Repository: sindresorhus/dom-mutations. Description: Observe changes to the DOM using an async iterable — A nicer API for MutationObserver Stars: 224, Forks: 6. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v1.0.2 (1y ago). Open PRs: 0, open issues: 0. Last activity: 1y ago. Community health: 71%. Top contributors: sindresorhus, Richienb.