Packages@robojs/sync
CursorResult<ClientData>
Interface: CursorResult<ClientData>
Result returned by useSyncCursor hook.
Type Parameters
| Type Parameter | Default type |
|---|---|
ClientData | unknown |
Properties
| Property | Type | Description |
|---|---|---|
clientId | string | Current client ID |
cursors | RemoteCursor<ClientData>[] | All cursors including yours |
remoteCursors | RemoteCursor<ClientData>[] | Only other users' cursors (use this for rendering to avoid self-rerenders) |
updatePosition | (pos: { active: boolean; x: number; y: number; }) => void | Manually update cursor position (useful for custom tracking) |
