Skip to main content

callback_tag_binding

Function callback_tag_binding 

Source
pub fn callback_tag_binding(component: &str, prop: &str) -> String
Expand description

The module binding holding a CALLBACK PROP’s own identity, per instance: which (component, action) pair to run when the prop is called, as that pair’s tag (events.rs::action_tag) — never the pair itself, because the two scalars a map CAN hold are an index and a key, never a function reference.

★ NOT prop_binding’S MAP. __P_<Component>_<prop> holds the prop’s VALUE, and a callback prop’s value is a closure — the one shape the wasm backend refuses inside a map, measured (events.rs::ListenerSite’s own doc comment). This binding never holds the closure: it holds which action the closure at THIS instance currently means, so a driving verb — which cannot call a closure it found at run time — can still resolve and run it.