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

LiveStateOptions

What defineLiveState takes: the state’s schema and its initial state, which every room reads at revision 0.

Type Parameter
Schema extends z.ZodMiniType
Property Type
initial output<Schema>
schema Schema