@embra/reactivity - v0.0.3
    Preparing search index...

    Interface Config<TValue>

    Custom config for the Readable/Writable.

    interface Config<TValue = any> {
        equal?: false | Equal<TValue>;
        name?: string;
        onDisposeValue?: (oldValue: TValue) => void;
    }

    Type Parameters

    • TValue = any
    Index

    Properties

    equal?: false | Equal<TValue>

    Compare two values. Default Object.is. false to disable equality check.

    name?: string

    Name for debugging.

    onDisposeValue?: (oldValue: TValue) => void

    A callback invoked when a value is needed to be disposed.

    A value is considered for disposal when:

    • it is replaced by another value (a new value is set).
    • the Readable is disposed.

    Type declaration

      • (oldValue: TValue): void
      • Parameters

        • oldValue: TValue

          The value that is needed to be disposed.

        Returns void