[][src]Function mem6::routermod::async_fetch_and_write_to_rrc_html_template

pub async fn async_fetch_and_write_to_rrc_html_template(
    url: String,
    vdom: VdomWeak
)

Fetch the html_template and save it in rrc.html_template
The async fn for executor spawn_local.
example how to use it in on_click:

.on("click", |_root, vdom, _event| {
    let v2 = vdom;
    //async executor spawn_local is the recommended for wasm
    let url = "t1.html".to_owned();
    //this will change the rrc.html_template eventually
    spawn_local(async_fetch_and_write_to_rrc_html_template(url, v2));
})