Skip to main content
Version: 1.4.0

Type Alias: Unsubscribe()

Unsubscribe = () => void

Defined in: src/Mnemonic/types.ts:901

Function type for unsubscribing from event listeners.

Call this function to remove a subscription and stop receiving updates.

Returns

void

Example

const unsubscribe = store.subscribeRaw("user", () => console.log("Updated!"));
// Later...
unsubscribe(); // Stop listening