Skip to content

Add guidance about disconnecting callbacks #637

@DragaDoncila

Description

@DragaDoncila

📚 New content request

We have an events reference that shows how to connect a layer or viewer event, and a guide on hooking up your own events, but none of them mention how to disconnect from that event 😅.

We should document that! Especially because I know in some cases (don't know which, don't know if they're relevant), your connect call returns a function you call to disconnect, whereas in other cases like layer events, you do my_layer.events.blah.disconnect(my_func)

Outline

I think these should be updates to existing docs linked above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions