useChangeObserver

Source
import { useChangeObserver } from "@prestojs/util";
useChangeObserver<T>(value,onChange,?options)
Source

Arguments:

ArgumentTypeDescription
*valueT
*onChange
options
An object with the properties below
options.disabledboolean
options.isEqual
Returns:void

Examples

Notify when a value changes