Class DynArrayReducerDerived<T>

    Provides the base implementation derived reducer for arrays / DynArrayReducer.

    Note: That you should never directly create an instance of a derived reducer, but instead use the DynArrayReducerDerived.initialize function to set up any initial state in a custom derived reducer.

    Type Parameters

    • T = unknown

      unknown - Type of data. Defaults to unknown to enforce type safety when no type is specified.

    Implements

    Accessors

    Methods

    • Protected

      Provides a callback for custom derived reducers to initialize any data / custom configuration. This allows child classes to avoid implementing the constructor.

      Parameters

      Returns void

    • Subscribe to this DerivedArrayReducer.

      Parameters

      • handler: (value: this) => void

        Callback function that is invoked on update / changes. Receives this reference.

      Returns () => void

      Unsubscribe function.