Skip to main content

site_binding

Function site_binding 

Source
pub fn site_binding(component: &str, key: &str) -> String
Expand description

The module binding that remembers WHERE one updatable site’s node landed.

The compiled half of Stage B: the render function writes each patchable site’s node into its own global, and a per-turn patcher writes new values into those nodes — so a turn that moves one field costs one setText instead of clearing the mount and rebuilding the subtree.

The name is derived from the site’s SiteDeps::key() ([email protected] → __SITE_App_text_0_1), so the dependency walk, the render walk and the patcher all address a site by ONE string.