Interface CreateLoadingSignalOptions

Options for creating a LoadingSignal

interface CreateLoadingSignalOptions {
    dispose?: (() => void);
    error?: Signal<undefined | Error>;
    loading?: Signal<boolean>;
}

Properties

dispose?: (() => void)

An optional disposal method

error?: Signal<undefined | Error>

The error state

loading?: Signal<boolean>

The loading state