minca
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 ParameterDefault type
Tunknown

Parameters

ParameterType
spaceIdstring
keystring
options?{ collection?: string; rel?: string; }
options.collection?string
options.rel?string

Returns

| readonly NodeRecord<T>[] | undefined

On this page