useLiveLists
Returns the lists published under each slot, in order, re-rendering when any of them changes; undefined for a slot nothing has published a list to.
@internote/canvas-sdk/reactOn this page
import { useLiveLists } from '@internote/canvas-sdk/react';For a mark that draws from another mark's readings, as segment does from a fit's readings and fitted. The result keeps its identity until a list in it is republished.
#Signature
(slots: ReadonlyArray<LiveSlot>): ReadonlyArray<LiveList | undefined>#Parameters
slotsThe slots to read. Rebuilt freely: only the ids and members matter.
#Example
const [fitted, readings] = useLiveLists([{ id: 'trend', member: 'fitted' }, { id: 'trend', member: 'readings' }]);Declared in packages/canvas-sdk/src/content/live-values.tsx:99.