ApiReactFunctions
Function: useLinked()
function useLinked<T>(
spaceId,
key,
options?
):
| readonly NodeRecord<T>[]
| undefined;Defined in: packages/react/src/use-space.ts:31
The records whose current version points at this one — optionally in one role, or one collection.
Type Parameters
| Type Parameter | Default type |
|---|---|
T | unknown |
Parameters
| Parameter | Type |
|---|---|
spaceId | string |
key | string |
options? | { collection?: string; rel?: string; } |
options.collection? | string |
options.rel? | string |
Returns
| readonly NodeRecord<T>[]
| undefined