Skip to content

useTable

useTable<G>(tableId, options?): UseTable<G>

Defined in: react/index.ts:172

Joins a table (once per client; later calls reuse it) and returns its live document with bound actions. Unmounting does not leave the table: call leave() for that.

G extends AnyGame = AnyGame

string | null | undefined

"player" | "spectator"

UseTable<G>