Document observed (external) state and how it differs from authoritative and derived state #3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We settled on a continuum for application state and agreed not to add a library primitive. The guidance should live in Gooey's documentation rather than only in the demos.
The continuum
calc/view); nobody may write it; never recorded.Write access narrows along the continuum, and the value's origin shifts from application-provided to environment-provided to computed.
Pattern (no primitive)
Observed state is an anonymous
fieldwith a scoped writer. The app-level helper:Rules:
get/subscribe(it is still aDynamic).ResizeObserveror interval left running is a leak.Reference cases
ResizeObserver, kept anonymous. If recorded, every scrub restores a stale measurement and records a new one.intrinsic-observer,teleportation,svg) — timer-driven toggles/ticks should be observed, not authoritative.Part of the state-history spike (PR #1). The demos are being adjusted to follow this pattern; the docs should describe it once the API settles.