Amazon Vinyl
    Preparing search index...

    Interface ConnectedObserverOptions

    interface ConnectedObserverOptions {
        events?: boolean;
    }
    Index
    events?: boolean

    Whether to dispatch a connect / disconnect DOM event on every node of an added or removed subtree, for listeners added with addEventListener (default true). onConnect callbacks run either way. Without the events, mounting or removing a large tree skips one event dispatch per node, which otherwise dominates the observer's cost.