diff --git a/sixtyfps_runtime/interpreter/api.rs b/sixtyfps_runtime/interpreter/api.rs index 2bf44ee6b..d5867cdaf 100644 --- a/sixtyfps_runtime/interpreter/api.rs +++ b/sixtyfps_runtime/interpreter/api.rs @@ -563,6 +563,7 @@ impl ComponentDefinition { /// Instantiate the component for wasm using the given canvas id #[cfg(target_arch = "wasm32")] pub fn create_with_canvas_id(&self, canvas_id: &str) -> ComponentInstance { + generativity::make_guard!(guard); ComponentInstance { inner: self.inner.unerase(guard).clone().create(canvas_id.into()) } }