• React Hook that updates when the given MPC's prop changes.

    Type Parameters

    • T extends
          | "systemId"
          | "name"
          | "rssi"
          | "pixelId"
          | "ledCount"
          | "colorway"
          | "dieType"
          | "firmwareDate"
          | "batteryLevel"
          | "isCharging"
          | "rollState"
          | "currentFace"
          | "currentFaceIndex"
          | "status"

    Parameters

    • pixel: undefined | MPC

      The MPC for which to watch the prop.

    • prop: T

      The prop to watch.

    Returns MPCMutableProps[T] | undefined

    The current value of the given prop on the given MPC.

    Use usePixelEvent to watch the RSSI value.