This modifications allow to create alerts with a specific id. Also i slighly changed the remove method to be able to remove an alert with just a mocked object like remove({id: xxx}).
This allow to create event triggered alerts (could also be done before this PR), but it's now much more redux compliant, cause you can create alert IDs in redux reducers and pop them up based on the global app state.
This modifications allow to create alerts with a specific id. Also i slighly changed the remove method to be able to remove an alert with just a mocked object like
remove({id: xxx})
.This allow to create event triggered alerts (could also be done before this PR), but it's now much more redux compliant, cause you can create alert IDs in redux reducers and pop them up based on the global app state.