documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Remove nonexisting function

Open neon-dev opened this issue 3 years ago • 0 comments

Removed delete function of crate notifications, which is not implemented.

Maybe you want to consider renaming the hide function to delete in the next major version and add an option to decrement the unread count on delete. The current implementation for hide is not a real hide, since the message can't be unhidden (which is fine, except for the naming). Currently the only way to clear the crate notification icon without toggling the button is:

crate.store.dispatch({ type: 'REMOVE_NOTIFICATION', payload: { decrement: true } })

neon-dev avatar May 19 '22 22:05 neon-dev