glink/instance

Types

pub type Instance

Values

pub fn cleanup(instance: Instance) -> Nil
pub fn clear(instance: Instance) -> Nil

Clear output.

pub fn rerender(instance: Instance, component: Component) -> Nil

Replace previous root node with a new one or update props of the current root node.

pub fn unmount(instance: Instance, error: a) -> Nil

Manually unmount the whole Ink app.

pub fn wait_until_exit(
  instance: Instance,
  then: fn() -> Nil,
) -> Nil

Awaits a promise, which resolves when app is unmounted.

Search Document