Liking cljdoc? Tell your friends :D

hive-hot.schema

Schema-driven hot-reload registration — the hive-hot leg of the malli macro layer. reg-hot-schema coerces + validates a component's opts against ONE malli schema before hive-hot.core/reg-hot stores them: declare the component's opts schema once and its guard is wired, replacing the ad-hoc :pre check with a real value-object contract.

hive-hot does not depend on hive-spi/malli; derive/compile-op is resolved LAZILY via a guarded requiring-resolve. When it is unresolvable (hive-spi absent) opts pass through and reg-hot's own :pre still guards :ns — registration never fails on a bare classpath.

Schema-driven hot-reload registration — the hive-hot leg of the malli macro
layer. `reg-hot-schema` coerces + validates a component's opts against ONE
malli schema before hive-hot.core/reg-hot stores them: declare the component's
opts schema once and its guard is wired, replacing the ad-hoc :pre check with a
real value-object contract.

hive-hot does not depend on hive-spi/malli; derive/compile-op is resolved
LAZILY via a guarded requiring-resolve. When it is unresolvable (hive-spi
absent) opts pass through and reg-hot's own :pre still guards :ns —
registration never fails on a bare classpath.
raw docstring

component-schemaclj

malli value-object for a hot-reload component's opts (the shape reg-hot expects): a required :ns symbol and optional :on-reload / :on-error fns.

malli value-object for a hot-reload component's opts (the shape reg-hot
expects): a required :ns symbol and optional :on-reload / :on-error fns.
sourceraw docstring

reg-hot-schemaclj

(reg-hot-schema component-id opts)
(reg-hot-schema component-id schema opts)

Register a hot-reload component whose opts are coerced + validated against a malli schema (a registered schema-key or an inline malli form; defaults to component-schema) before hive-hot.core/reg-hot stores them. An invalid opts map throws {:error :schema/invalid ...} before registration. When hive-spi is absent, opts pass through unchecked (reg-hot's :pre still guards). Returns the component-id.

Register a hot-reload component whose `opts` are coerced + validated against a
malli `schema` (a registered schema-key or an inline malli form; defaults to
`component-schema`) before hive-hot.core/reg-hot stores them. An invalid opts
map throws {:error :schema/invalid ...} before registration. When hive-spi is
absent, opts pass through unchecked (reg-hot's :pre still guards). Returns the
component-id.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close