TransientValue
One reading per environment: a cursor position, a scale bar, a focused mark.
@internote/canvas-sdkOn this page
import { TransientValue } from '@internote/canvas-sdk';#Fields
getReturns the current reading, or
null.T | nullsetPublishes a reading, or withdraws it with
null. Subscribers wake only on a real change.voidsubscribeCalls the listener after every real change to this environment's reading, and returns the unsubscribe.
() => voidDeclared in packages/canvas-sdk/src/storage/transient.ts:55.