MCPcopy Create free account
hub / github.com/angular-rust/yew-components / create

Method create

src/switch.rs:45–52  ·  view source on GitHub ↗
(props: Self::Properties, link: ComponentLink<Self>)

Source from the content-addressed store, hash-verified

43 type Properties = SwitchProps;
44
45 fn create(props: Self::Properties, link: ComponentLink<Self>) -> Self {
46 // Switch::ensure_loaded();
47 Self {
48 link,
49 props,
50 change_listener: None,
51 }
52 }
53
54 fn update(&mut self, msg: Self::Message) -> ShouldRender {
55 // info!("Switch update!");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected