I was wondering why preventDuplicates isn't really working but it turns out that the addon uses the globally configured preventDuplicates.
This means if one wants to have some toasts to prevent duplicates, but not all, it's currently not possible.
One could change the addon behavior to read preventDuplicates when adding a flash.
This means a new precedence would look like:
flashMessages.add preventDuplicates
defaultPreventDuplicates
If this is ok, I could open a PR to implement this behavior
Hi,
I was wondering why
preventDuplicates
isn't really working but it turns out that the addon uses the globally configuredpreventDuplicates
.This means if one wants to have some toasts to prevent duplicates, but not all, it's currently not possible. One could change the addon behavior to read
preventDuplicates
when adding a flash.This means a new precedence would look like:
preventDuplicates
defaultPreventDuplicates
If this is ok, I could open a PR to implement this behavior