Type Parameters
- T extends
| "name"
| "batteryLevel"
| "rssi"
| "systemId"
| "pixelId"
| "ledCount"
| "colorway"
| "dieType"
| "firmwareDate"
| "isCharging"
| "rollState"
| "currentFace"
| "currentFaceIndex"
Parameters
- pixelInfo: undefined | PixelInfoNotifier<PixelInfoNotifierMutableProps, Readonly<{
batteryLevel: number;
colorway:
| "custom"
| "clear"
| "unknown"
| "onyxBlack"
| "hematiteGrey"
| "midnightGalaxy"
| "auroraSky"
| "whiteAurora";
currentFace: number;
currentFaceIndex: number;
dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge";
firmwareDate: Date;
isCharging: boolean;
ledCount: number;
name: string;
pixelId: number;
rollState:
| "unknown"
| "handling"
| "rolling"
| "crooked"
| "rolled"
| "onFace";
rssi: number;
systemId: string;
}>> - prop: T
The current value of the given prop on the given PixelInfoNotifier.
React Hook that updates when the given PixelInfoNotifier's prop changes.