Skip to main content

euv_debug

Function euv_debug 

Source
pub fn euv_debug(node: VirtualNode<EuvDebugProps>) -> VirtualNode
Expand description

A dev-only component for inspecting reactive state inside the component tree.

Renders a labelled readout block. The body is the result of invoking the value closure on every render, which means callers typically embed Signal::get() calls inside value to subscribe the rendered vnode to live state changes.

The component emits data-euv-debug (on the outer wrapper), data-euv-debug-label (on the label span), and data-euv-debug-value (on the value element) so that CSS / dev-tools / e2e tests can target each piece without relying on class names.

§Arguments

  • VirtualNode<EuvDebugProps> - The props node containing label, value closure, and expanded flag.

§Returns

  • VirtualNode - A labelled Debug readout element.