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

useHeldWorld

useHeldWorld(): HeldWorld | null

The world this page holds, through its room or on its own, as readHeldWorld reads it: its id, name, owner, region, settings and listing. Null in a room that holds none, in a game played alone that keeps no worlds, and until the room’s first send; outside the app, a game played alone that keeps worlds holds the stand-in world dev. A world board’s handle takes its id.

HeldWorld | null

const held = useHeldWorld();
return held && <HarvestRows board={leaderboards.harvest.for(held.id)} />;