ESM entry point for x-trace-history, BareDOM's dev-only debugger.
Unlike component exports, this module exposes no public-api map: the dock is not a consumer-facing component, has no model.cljs under components/, and contributes nothing to custom-elements.json. Its surface is the JS API at window.BareDOM.traceHistory.* (typed in dist/x-trace-history.d.ts).
register! is idempotent and gates on model/enabled? inside recorder/register!, so loading this module in a consumer app costs a single boolean check when ?baredom-trace-history is absent.
Auto-invoked on module load: components (x-button, x-card, etc.)
ship a per-component React/Angular wrapper that calls init() during
its own load, so the framework's import statement implicitly
activates the component. The trace-history dock has no wrapper
(it's a dev tool, not a consumer-facing component), so a plain
import "@vanelsas/baredom/x-trace-history" side-effect import
has to do the activation itself. Calling register! at the
namespace level achieves that: the dock self-activates on the
first import, idempotent on repeat imports.
ESM entry point for x-trace-history, BareDOM's dev-only debugger. Unlike component exports, this module exposes no public-api map: the dock is not a consumer-facing component, has no model.cljs under components/, and contributes nothing to custom-elements.json. Its surface is the JS API at window.BareDOM.traceHistory.* (typed in dist/x-trace-history.d.ts). register! is idempotent and gates on model/enabled? inside recorder/register!, so loading this module in a consumer app costs a single boolean check when ?baredom-trace-history is absent. Auto-invoked on module load: components (x-button, x-card, etc.) ship a per-component React/Angular wrapper that calls init() during its own load, so the framework's import statement implicitly activates the component. The trace-history dock has no wrapper (it's a dev tool, not a consumer-facing component), so a plain `import "@vanelsas/baredom/x-trace-history"` side-effect import has to do the activation itself. Calling register! at the namespace level achieves that: the dock self-activates on the first import, idempotent on repeat imports.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |