Skip to content

watchCollection

Andrei Fangli edited this page Sep 3, 2023 · 2 revisions
API / watchCollection<TItem> hook

DEPRECATED!

In future versions this hook will be removed, switch to useObservableCollection.


Watches the collection for changes, requesting a render when it does. The collection is the only hook dependency.

function watchCollection<TItem>(observableCollection: IReadOnlyObservableCollection<TItem>): void

Template Parameters

  • TItem: the type of items the collection contains.

Parameters

Clone this wiki locally