Skip to content

Instantly share code, notes, and snippets.

rustwasm/wasm-bindgen#3782 adds coverage output but requires a workaround in wasm-bindgen-interpreter which should be possible to avoid.

In this issue, I want to show where these problems occurs and how I've (unsuccessfully) attempted to solve them so that someone else can maybe pick up where I left off.

Exploring the Issue

cargo new wasm-cov-test

@aDogCalledSpot
aDogCalledSpot / main.rs
Last active October 17, 2023 09:09
Patternfly Yew UseStateHandle in Backdrop
#![recursion_limit = "1024"]
use patternfly_yew::prelude::*;
use yew::prelude::*;
#[function_component(Application)]
pub fn app() -> Html {
let title = use_state_eq(|| "This should change when you press the button".to_string());
html! {
<BackdropViewer>