Skip to content

Tree EntityLoader crashes when a node is destroyed during async load #1536

Description

@michalcharvat

go.tree.EntityLoader.doRequest renders child nodes in the callback of an async entityStore.query → get round-trip. If the node is collapsed, removed, or the tree is destroyed before that resolves, handleResponse runs against a dead node and throws. Add a guard that verifies the node and its tree still exist before rendering, and clears the loading flag on the early-out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions