useLiveValue
Returns the current numeric value of #nodeId.member, re-rendering when it changes, or undefined without a provider or a publisher.
@internote/canvas-sdk/reactOn this page
import { useLiveValue } from '@internote/canvas-sdk/react';#Signature
(nodeId: string | null, member: string | null): number | undefined#Parameters
nodeIdThe node's
#id, or null to read nothing.memberThe member, or
null to read nothing.#Example
const slope = useLiveValue('fit', 'slope');Declared in packages/canvas-sdk/src/content/live-values.tsx:69.