Function trigger

  • Finds all deps associated with the target (or a specific property) and triggers the effects stored within.

    Parameters

    • target: object

      The reactive object.

    • type: TriggerOpTypes

      Defines the type of the operation that needs to trigger effects.

    • Optional key: unknown

      Can be used to target a specific reactive property in the target object.

    • Optional newValue: unknown

    Returns void