Skip to content

Feature Request: Event Stream from Mutation Observer #811

@Sleepful

Description

@Sleepful

Just for convenience, it would be nice:

https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver

It would be even nicer if the Event Stream handled the creation and destruction of the observer automatically to avoid typing imperative code like:

const observer = new MutationObserver(callback);
observer.observe(targetNode, config);
observer.disconnect();

RxJS example:

https://soufatn.gitbook.io/rxjs-book/summary/rxjs_bindings/dom/mutation_observers/from_mutation_observer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions