You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
shouldnt it remove all listeners instead of only listeners attached with on('*', fn)? alternatively it would be good to have some destroy method to remove all listeners, whatsoever, that could be even achieved with emitter.off() (when called without arguments)
The text was updated successfully, but these errors were encountered:
No - wildcards are an event type of their own, they simply match all fired events. If the behavior was changed, it'd make it impossible to unregister a * listener. Your other suggestion was discussed here, and there are a few different solutions provided that don't require extra code in mitt: #27
shouldnt it remove all listeners instead of only listeners attached with
on('*', fn)
? alternatively it would be good to have somedestroy
method to remove all listeners, whatsoever, that could be even achieved withemitter.off()
(when called without arguments)The text was updated successfully, but these errors were encountered: