-
Notifications
You must be signed in to change notification settings - Fork 2
useObservableSet
API / useObservableSet hook
Watches an observable set for changes. The set is the only hook dependency.
function useObservableSet<TObservableSet extends undefined | null | INotifySetChanged<TItem>, TItem>(
observableSet: TObservableSet
): TObservableSet
Source reference: src/hooks/UseObservableSet.ts:11
.
-
TObservableSet - The observable set type.
Type constraints:
undefined
|null
| INotifySetChanged<TItem>. -
TItem - The type of items the set contains.
-
observableSet: TObservableSet
The set to watch.
Returns the provided observable set.
Overview
Motivation
Guides and Tutorials - Getting Started
Releases
CodeSandbox
API
Events
IEvent
IEventHandler
EventDispatcher
ViewModels
INotifyPropertiesChanged
ViewModel
Forms
Form
IFormFieldConfig
FormField
ReadOnlyFormCollection
FormCollection
IConfigurableFormCollection
FormSetupCallback
Validation
IValidator
ValidatorCallback
IObjectValidator
IValidatable
Validation / Triggers
WellKnownValidationTrigger
ValidationTrigger
Observable Collection
ReadOnlyObservableCollection
ObservableCollection
INotifyCollectionChanged
CollectionChangeOperation
INotifyCollectionReordered
CollectionReorderOperation
Observable Map
ReadOnlyObservableMap
ObservableMap
INotifyMapChanged
MapChangeOperation
Observable Set
ReadOnlyObservableSet
ObservableSet
INotifySetChanged
SetChangeOperation
Dependency Handling
IDependencyResolver
IDependencyContainer
DependencyContainer
useDependency
useViewModelDependency
useDependencyResolver
React Hooks
useViewModel
useViewModelMemo
useObservableCollection
useObservableMap
useObservableSet