Function track

  • Tracks access to a reactive property.

    This will check which effect is running at the moment and record it as dep which records all effects that depend on the reactive property.

    Parameters

    • target: object

      Object holding the reactive property.

    • type: TrackOpTypes

      Defines the type of access to the reactive property.

    • key: unknown

      Identifier of the reactive property to track.

    Returns void