Skip to content

Order of multiple notificatiions #65

@lexoyo

Description

@lexoyo

Hi
Thx for this nice simple library
In the case of "Queued Notifications" the order is inverted:

  const show = notify.createShowQueue();
  // ...
      console.log(show(operation.title + '1'));
      console.log(show(operation.title + '2'));
      console.log(show(operation.title + '3'));
      console.log(show(operation.title + '4'));

This will show toasts in this order:
1- "My operation1"
2- "My operation4"
3- "My operation3"
4- "My operation2"

Also a few notes I have:

  • the return value of the show method is not documented
  • the fact that there is only 1 toast at a time should be documented or an option (max number of toasts in createShowQueue maybe?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions