[][src]Function moxie_dom::boot

pub fn boot(new_parent: impl Into<Node>, root: impl FnMut() + 'static)

The "boot sequence" for a moxie-dom instance creates a crate::embed::WebRuntime with the provided arguments and begins scheduling its execution with requestAnimationFrame on state changes.

If you need to schedule your root function more or less frequently than when state variables are updated, see the embed module for granular control over scheduling.

In terms of the embed module's APIs, this function constructs a new WebRuntime and begins scheduling it with an AnimationFrameScheduler which requests an animation frame only when there are updates to state variables.