react-rv
    Preparing search index...

    Type Alias RvInitOptions<T>

    Configuration options for initializing a reactive variable.

    type RvInitOptions<T> = {
        eq?: EqualFn<T>;
        on?: (val: T) => void;
    }

    Type Parameters

    • T

      The type of the reactive variable's value.

    Index

    Properties

    Properties

    eq?: EqualFn<T>

    Custom equality function to determine if the value should update.

    on?: (val: T) => void

    A callback function triggered whenever the reactive variable is updated.

    Type declaration

      • (val: T): void
      • Parameters

        • val: T

          The new value of the reactive variable.

        Returns void