TinyBase logoTinyBase

HasValuesListener

The HasValuesListener type describes a function that is used to listen to Values as a whole being added to or removed from the Store.

(
  store: Store,
  hasValues: boolean,
): void
TypeDescription
storeStore

A reference to the Store that changed.

hasValuesboolean

Whether Values now exist or not.

returnsvoid

This has no return value.

A HasValuesListener is provided when using the addHasValuesListener method. See that method for specific examples.

When called, a HasValuesListener is given a reference to the Store. It is also given a flag to indicate whether Values now exist (having not done previously), or do not (having done so previously).

Since

v4.4.0