Skip to content

Event listeners disappear  #896

@nathanhack

Description

@nathanhack

I have a list of app.Compo's that are a generic "Node" and I render a list ([]*Node) of them.
When deleting one of the Nodes (from the middle of the list) like this:

sc.nodes[i] = sc.nodes[len(sc.nodes)-1]
sc.nodes = sc.nodes[:len(sc.nodes)-1]

The event listeners seem to no longer work. Based on the inspect view it looks like there are listeners registered. (Are they from the other Node that was removed?)

Any help would be appreciated.

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