Reactive APIs
    Preparing search index...

    Options for the emitter function.

    interface EmitterOptions<T> {
        subscribed?: () => void;
        unsubscribed?: () => void;
    }

    Type Parameters

    • T
    Index

    Properties

    subscribed?: () => void

    This function is invoked when the first subscriber subscribes to the emitter.

    unsubscribed?: () => void

    This function is invoked when the last subscriber unsubscribes from the emitter.