Expand description
FRAME-12: the module contract — what every profile implements and
the host mounts: mount(target, { props, bus }) → { update(props), destroy() }. In the page a module is an ES module (esm/1 written by
hand, svelte/1 from FRAME-13) the host imports from its version’s
components/<name>.js and wraps ([crate::entry]’s JsModule); the
rhx runtime (rhx/1, the tree and the folds) is the host’s own arm of
the same lifecycle in crate::swap — mounted, updated, swapped,
fallen back and destroyed by the same rules.
Constants§
- RHX
- The profile of the tree-and-Rhai runtime; a manifest entry that names no profile is one.
Traits§
- Module
- A component’s code, ready to mount.
- Module
Instance - A mounted module.