Skip to main content

Module render

Module render 

Source
Expand description

Mounting, rendering, and updating a component.

The order is upstream’s, and it is what the browser depends on: a component boots, initializes, mounts, boots again, renders, dehydrates, and is destroyed; an update verifies the snapshot, rebuilds the component, applies the properties, runs the calls, then renders again unless an action or a redirect said not to.

Structs§

Rendered
What a mount or an update produced.
Updated
What one component’s update produced.

Functions§

apply_update
Applies one property update, walking a dot path and rejecting one that is too deep.
download_of
Reads the download an action asked for, which the response sends instead of markup.
mount
Mounts the component name, and renders it to the markup the page embeds.
mount_child
Mounts a component that another component’s template renders, and records it on its parent.
render_view
Renders a component’s view, whether it names a template or carries its own source.
should_skip
Whether an update can be answered with skip instead of a render.
update
Updates a component from its verified snapshot: properties first, then the calls, then a render unless an action or a redirect said to skip it.