ApiReactFunctions
Function: useRecord()
function useRecord<T>(spaceId, key):
| NodeRecord<T>
| null
| undefined;Defined in: packages/react/src/use-space.ts:26
A record's current version: undefined while loading, null when there is none.
Type Parameters
| Type Parameter | Default type |
|---|---|
T | unknown |
Parameters
| Parameter | Type |
|---|---|
spaceId | string |
key | string |
Returns
| NodeRecord<T>
| null
| undefined