Skip to content

Type Alias: EventUnsubscribe ​

ts
type EventUnsubscribe = () => void;

Defined in: src/wirestate-core/plugin/events/events.ts:85

Removes the event subscription it was returned for.

Returns ​

void

Remarks ​

Each subscription has its own unsubscriber. Calling it removes only that subscription, even when the same handler function was subscribed more than once.