computed-fields

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Computed fields — derived values the engine keeps in sync for you.

Subtotal, Tax, Total, and the checkout button's state are all DERIVED from the two inputs (Qty and UnitPrice). We never recompute them by hand in a handler: Compute() declares how each is derived and which fields it depends on, and the engine recomputes it (in dependency order) and surgically patches its bound nodes whenever a dependency changes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL