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.
Returns
Section titled “Returns”HeldWorld | null
Example
Section titled “Example”const held = useHeldWorld(); return held && <HarvestRows board={leaderboards.harvest.for(held.id)} />;