Presto
GitHub
Getting Started
Packages
View Model
Final Form
REST
Routing
UI
UI ANTD
Util
isPromise
useAsync
useAsyncListing
useAsyncValue
useChangeObserver
useListChangeObserver
useMemoOne
Comparison
isDeepEqual
isEqual
Identifiable
getId
hashId
Identifiable
isIdentifiable
isSameById
Labeled
getNodeLabel
getTextLabel
isLabeled
isNodeLabeled
NodeLabeled
TextLabeled
Pagination
CursorPaginator
InferredPaginator
LimitOffsetPaginator
PageNumberPaginator
Paginator
usePaginator
Time
formatTime
parseTime
On this page
Arguments
Examples
Notify when a value changes
useChangeObserver
Source
import { useChangeObserver } from "@prestojs/util";
useChangeObserver
<
T
>
(
value
,
onChange
,
?options
)
Source
Arguments:
Argument
Type
Description
*
value
T
*
onChange
Function
options
An object with the properties below
options.disabled
boolean
options.isEqual
Function
Returns:
void
Examples
Javascript
Typescript
Notify when a value changes
Show Code