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

Ability to limit the max # of notifications displayed in the UI? #59

Open
bhellman1 opened this issue Jan 23, 2018 · 1 comment
Open

Comments

@bhellman1
Copy link

Hello, currently notifications will pile on top of one another... Is there a way to display a max of 1 notification at a time? In this particular use case, if one notification is still showing, it would be instantly removed and then the new notification would be shown.

I tried that by doing:

  dispatch(removeAll());
  dispatch(info({....

The problem with the above is the animations cause some crazy jumpiness and isn't very smooth. The removeAll seems to animate the removal which is the problem vs being instantly removed so the new notification can animated in nicely.

Thanks

@SheikhG1900
Copy link

I was having same issue. What I wanted was notification should have appeared based on id.
If I provide same id again then particular notification should have updated. This is not supported by is parent application react-notification-system. So I wrote its extension. Here is the demo. It may probably help you.

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

2 participants