Skip to content

Feature request: Provide an idempotent unmount API for mounted applications #141

Description

@dowdiness

Problem

App::mount mounts a Rabbita application, but Rabbita 0.13.1 does not provide a public API for unmounting it.

Without an unmount API, hosts cannot safely stop a mounted application. Its subscriptions and callbacks may remain active, continue updating the DOM, and prevent the container from being safely reused.

Proposal

App::mount should return a MountedApp value representing that particular mounted application. Calling MountedApp::unmount should tear down only that mount, without exposing Rabbita's internal DOM, subscription, or runtime state.

Proposal example

// return a `MountedApp` value
let mounted_app = app.mount(root)
// can be unmounted later
mounted_app.unmount()

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions