Skip to content

useRoom

const useRoom: UseBoundStore<StoreApi<RoomState>>

Defined in: packages/engine/src/stores/room.ts:68

The client’s room as the loop last read it, for the devtools and a game’s own readout. The loop is its one writer, and a game with no room leaves it closed.