# Function: useHoldSpace()

```ts
function useHoldSpace(spaceId): void;
```

Defined in: [packages/react/src/use-space.ts:11](https://github.com/leifriksheim/minca/blob/main/react/src/use-space.ts#L11)

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`
