Interface Context_Dynamic

if ctx is your context, then these function members are available under ctx.dynamic.
the purpose of these functions is to dynamically change an existing signal's value (or cached value), equality equals checking function, or its recomputation fn function.
to use any of these, you must have the signal's original id, which is typically provided by the create function's first element in the tuple. // TODO-DOC: give an example

interface Context_Dynamic {
    setValue: (<T>(id, new_value) => void);
    setEquals: (<T>(id, new_equals) => void);
    setFn: (<T>(id, new_fn) => void);
}

Properties

setValue: (<T>(id, new_value) => void)

Type declaration

    • <T>(id, new_value): void
    • Type Parameters

      • T

      Parameters

      • id: number
      • new_value: T

      Returns void

setEquals: (<T>(id, new_equals) => void)

Type declaration

    • <T>(id, new_equals): void
    • Type Parameters

      • T

      Parameters

      Returns void

setFn: (<T>(id, new_fn) => void)

Type declaration

    • <T>(id, new_fn): void
    • Type Parameters

      • T

      Parameters

      Returns void

Generated using TypeDoc