Skip to content

de-async emissions #375

@eoghanmurray

Description

@eoghanmurray

I've got a problem I've traced back to processing of the emission event.
Basically I think it's possible for a DOMMutation event to alter the DOM node tree while I'm processing the initial FullSnapshot event.

This is resulting in an application specific bug, but (assuming I've got the diagnosis right) I'm wondering whether this could be a more general source of bugs, e.g. a mutation event appearing in the recording before the snapshot that it should act upon.

Should we introduce locking code or some sort of a queue to ensure that emissions happen sequentially?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions