A needs entry — a built-in name, an inline provide/dangerously, a
provider() ref, or a state() read of a fact some hook recorded.
state() rides this union rather than getting its own accessor so that ALL of
a hook's external inputs stay in one declared list: the dependency is auditable
from outside the hook, and reading an undeclared one is a tsc error. See the
design note in hook-state.ts.
A
needsentry — a built-in name, an inlineprovide/dangerously, aprovider()ref, or astate()read of a fact some hook recorded.state()rides this union rather than getting its own accessor so that ALL of a hook's external inputs stay in one declared list: the dependency is auditable from outside the hook, and reading an undeclared one is atscerror. See the design note inhook-state.ts.