Skip to content

Framework-specific lifecycle dispose missing on destroy #288

@veracioux

Description

@veracioux

While writing TUI tests for opencode, I noticed that the onCleanup (solidjs) was only invoked when the process exited. This caused a lot of test flakiness because the components had event listeners that survived between tests.

I think that this kind of cleanup should be performed when the renderer is destroyed. I'll create a PoC PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions