We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
4446a2b
be28d45: subscribe will now return a function that will unsubscribe the listener - useful for use in React side effects:
subscribe
useEffect(() => event.subscribe(listener), []);
2af5aca: Event now provides onSubscribe and onUnsubscribe events that are emitted when new subscribers are added or removed.
Event
onSubscribe
onUnsubscribe