Skip to content

Hook event listener firing twice #1756

@ankology

Description

@ankology
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.4.10

Environment

Mapped in reproduction

Reproduction link

Edit on CodeSandbox

Explanation

Just look at console, the hook will be fired twice. Looking the code from "a-switch" is passed down the $listeners, and because of that its fired twice, i think this happen in all the components that pass down $listeners, the "a-input" is not passing down nothing and works fine by example. In fact its not a really bug but looking at the point of view of a hook listener its correct to pass down the hook listeners along the first component? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions