Helpers
Selkie::UI::Helpers
Helper routines for Selkie UI builders.
with-ui-context(&block)
Wraps a block to preserve dynamic variables across async boundaries. Captures
$*UI-APP, $*UI-PARENT, and $*UI-ID from the call site and restores
them when the returned closure is invoked. Also sets up a fresh @*UI-NODES
for the callback.
selkie-obj($widget)
Returns the underlying widget object. If $widget has an .obj method
(builder pattern), calls it. Otherwise returns $widget directly.
is idempotent trait
Method trait that prevents duplicate event handler registration. Wraps the
method to call $.should-add with the method name, returning early if the
handler was already registered for the current $*UI-ID context.