Skip to main content
Module

x/tui/mod.ts>makeObjectPropertiesReactive

🦕 Deno module for creating Terminal User Interfaces
Latest
function makeObjectPropertiesReactive
Re-export
import { makeObjectPropertiesReactive } from "https://deno.land/x/tui@2.1.11/mod.ts";

Watches the object for changes and when they happen propagate method gets called on provided signal.

Parameters

object: T

– Changes the way reactivity is handled

  • When set to true it creates Proxy which watches properties, even new ones.
  • When set to false it uses Object.defineProperty to watch properties that existed at the time of creating signal.
signal: Signal<S>
optional
watchObjectIndex = [UNSUPPORTED]

Returns

new object, not direct reference to given object