ValuesListener
The ValuesListener type describes a function that is used to listen to changes to all the Values in a Store.
(
store: Store,
getValueChange: GetValueChange | undefined,
): void| Type | Description | |
|---|---|---|
store | Store | A reference to the |
getValueChange | GetValueChange | undefined | A function that returns information about any |
| returns | void | This has no return value. |
A ValuesListener is provided when using the addValuesListener method. See that method for specific examples.
When called, a ValuesListener is given a reference to the Store and a GetValueChange function that can be used to query Values before and after the current transaction.
Note that if the listener was manually forced to be called (with the callListener method rather than due to a real change in the Store), the GetValueChange function will not be present.
Since
v1.0.0