Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order of multiple notificatiions #65

Open
lexoyo opened this issue May 18, 2019 · 0 comments
Open

Order of multiple notificatiions #65

lexoyo opened this issue May 18, 2019 · 0 comments

Comments

@lexoyo
Copy link

lexoyo commented May 18, 2019

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?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant