Function percy_dom::patch [−][src]
pub fn patch<N: Into<Node>>(
root_node: N,
new_vnode: &VirtualNode,
managed_events: &mut EventsByNodeIdx,
patches: &[Patch<'_>]
) -> Result<(), JsValue>
Expand description
Apply all of the patches to our old root node in order to create the new root node
that we desire. Also, update the EventsByNodeIdx
with the new virtual node’s event callbacks.
This is usually used after diffing two virtual nodes.