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

persist

const persist: Persist

zustand’s persist, with the player’s save as its storage: the store loads once the Game’s save has, and each record the engine writes reads it, under the record’s stores by its name. A stored version is migrated with migrate; one the store cannot read refuses the save’s load. Use it for a game with no rooms.