Skip to content

Update toast duration does not work #40

@jzaehrin

Description

@jzaehrin

It seems impossible to update the duration of a toast already in progress. The aim is to reuse the previous toast to display the result of the request.

uuid =
  LiveToast.send_toast(
    :info,
    gettext("Test in progress"),
    duration: 100_000
  )

# later in the live view

  LiveToast.send_toast(
    :success,
    gettext("Test finished"),
    duration: 3_000,
    uuid: uuid
  )

The toast persists until the timeout defined in the first call. Is it possible that this is a current limitation?

We're currently using version 0.6.4 because 0.7.0 conflicts with our version of Gettext.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions