Skip to main content

create_dynamic_node

Function create_dynamic_node 

Source
pub fn create_dynamic_node<F>(render_fn: F) -> VirtualNode
where F: FnMut() -> VirtualNode + 'static,
Expand description

Constructs a VirtualNode::Dynamic from a render closure with hook context management.

§Arguments

  • FnMut() -> VirtualNode + 'static - The render closure that produces a virtual node tree. Called on initial render and on every signal update.

§Returns

  • VirtualNode - A VirtualNode::Dynamic wrapping the render closure with a fresh HookContext.