LiveStateHandle
One live state of a game: its name, its schema and its initial state.
readLiveState, setLiveState and useLiveState take it.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
Name extends string |
string |
Schema extends z.ZodMiniType |
z.ZodMiniType |
Properties
Section titled “Properties”| Property | Modifier | Type |
|---|---|---|
initial |
readonly |
ReadonlyLiveState<output<Schema>> |
name |
readonly |
Name |
schema |
readonly |
Schema |