Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

LiveStateHandle

One live state of a game: its name, its schema and its initial state. readLiveState, setLiveState and useLiveState take it.

Type Parameter Default type
Name extends string string
Schema extends z.ZodMiniType z.ZodMiniType
Property Modifier Type
initial readonly ReadonlyLiveState<output<Schema>>
name readonly Name
schema readonly Schema