watch

watch watches one or more reactive data sources and invokes a callback function when the sources change.

Visit the following resources to learn more: