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/reactHook
On this page
import { useLiveValue } from '@internote/canvas-sdk/react';

#Signature

(nodeId: string | null, member: string | null): number | undefined

#Parameters

nodeId
The node's #id, or null to read nothing.
member
The member, or null to read nothing.

#Example

const slope = useLiveValue('fit', 'slope');

Declared in packages/canvas-sdk/src/content/live-values.tsx:69.

Last updated