import * as tui from "https://deno.land/x/tui@2.1.11/src/signals/mod.ts";
Classes
Computed is a type of signal that depends on other signals and updates when any of them changes | |
Thrown whenever someone tries to directly modify | |
Effect is an container for callback function, which runs every time any of its dependencies get updated. | |
Flusher tracks | |
LazyComputed is a type of signal that depends on other signals and updates when any of them changes
| |
LazyEffect is an container for callback function, which runs every time any of its dependencies get updated. When initialized that functions gets ran and all dependencies for it are tracked.
| |
Signal wraps value in a container. | |
Thrown whenever |
Functions
Replaces | |
Replaces | |
Watches the object for changes and when they happen | |
Replaces | |
Replaces all dependencies with root dependencies to prevent multiple updates caused by the same change. | |
Asynchronously tracks used signals for provided function |
Interfaces
Function that's used to calculate | |
Element which relies on dependencies to function | |
Element which can be a root Signal, doesn't need to depend on anything | |
Function that's ran every time | |
Element which relies on dependencies to function and updates either after specified interval or when flusher gets flushed | |
Type describing function that gets called each time signal changes |
Type Aliases
Type that defines signal, which doesn't implement any properties that |