Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "observer/observable"

Index

Variables

Const OBSERVABLE_UPDATES_DISABLED_EXCEPTION

OBSERVABLE_UPDATES_DISABLED_EXCEPTION: "Cannot update observables when updates to them are disabled." = "Cannot update observables when updates to them are disabled."

Exception thrown when observableUpdatesEnabled is false and something tries to update an observable.

Const WATCHER_EXCEPTION

WATCHER_EXCEPTION: "Watcher failed to execute." = "Watcher failed to execute."

Exception thrown when a WatcherFunction invocation causes an error.

Let observableUpdatesEnabled

observableUpdatesEnabled: boolean = true

Flag indicating if observables can change their values.

This will only be false when computed observables are evaluated to prevent side effects.

Functions

shouldObservablesUpdate

  • shouldObservablesUpdate(shouldUpdate: boolean): void

Generated using TypeDoc