Skip to content

Fail to update scroll listener in 1.9.0, due to wrong deduplication implementation #569

@WangLeto

Description

@WangLeto

if (!attachedListeners.has(eventName)) attachedListeners.set(eventName, new Set());
const listeners = attachedListeners.get(eventName);
if (listeners.has(listenerName)) return;

Version 1.9.0 added a deduplication mechanism for event listeners, but did not remove the corresponding records. This causes the component to fail to update the event listener when it is remounted and the container is specified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions