Framework-agnostic dispatch loop shared by the React, HTML, and
future adapters. See the module-level documentation for the fixed
dispatch order.
The dispatcher itself is intentionally side-effect free — it never
imports React, never builds HTML strings, and never reads any global
state. Adapter-specific work (widget registry lookup, recursion
sentinel construction, result coercion, error wrapping) is supplied
via the DispatchConfig argument.
Framework-agnostic dispatch loop shared by the React, HTML, and future adapters. See the module-level documentation for the fixed dispatch order.
The dispatcher itself is intentionally side-effect free — it never imports React, never builds HTML strings, and never reads any global state. Adapter-specific work (widget registry lookup, recursion sentinel construction, result coercion, error wrapping) is supplied via the DispatchConfig argument.