ApiReactFunctions
Function: useHoldSpace()
function useHoldSpace(spaceId): void;Defined in: packages/react/src/use-space.ts:11
Holds a space (spaces.hold) while the component is on screen, so it keeps syncing. Reading or writing
opens a space anyway; this is for a view that should hear from peers even
before it asks for anything.
Parameters
| Parameter | Type |
|---|---|
spaceId | string |
Returns
void