This is a part feature request, part question if it's already possible.
I'm looking for a way to be able to update, or immediately replace an existing notification that's currently visible. The use case is an app where a bunch of asynchronous processing happens on the server, and progress is reported back to the UI via a web socket. When this happens, I want to be able to update the notification with this progress and when finished, change the appearance from an info/working status to a success.
Theoretically, I should be able to change the underlying notification data and it should be reflected in the UI thanks to reactivity, but it's more a case of getting access to that notification. I'm presenting everything using the notify method as per the README but this doesn't give me the actual notification object.
Looking through the code, I suppose it's possible to hook into the events and and listen for the notification event but that's not exposed by notiwind so not sure how this would be done.
So my question/request is:
a) Can this be done in its current state?
b) If not, this would be an awesome feature to have
This is a part feature request, part question if it's already possible.
I'm looking for a way to be able to update, or immediately replace an existing notification that's currently visible. The use case is an app where a bunch of asynchronous processing happens on the server, and progress is reported back to the UI via a web socket. When this happens, I want to be able to update the notification with this progress and when finished, change the appearance from an info/working status to a success.
Theoretically, I should be able to change the underlying notification data and it should be reflected in the UI thanks to reactivity, but it's more a case of getting access to that notification. I'm presenting everything using the
notify
method as per the README but this doesn't give me the actual notification object.Looking through the code, I suppose it's possible to hook into the events and and listen for the notification event but that's not exposed by notiwind so not sure how this would be done.
So my question/request is:
a) Can this be done in its current state? b) If not, this would be an awesome feature to have