fix: make sure to set scope on none

This commit is contained in:
Jonathan Kelley committed 2022-12-23 23:59:02 -05:00
1 parent 48b1bf2ac1
commit 6b41c9d193
2 files changed
+10 -1

No files matched your search

+2
View File
@@ -337,6 +337,8 @@ impl<'b> VirtualDom {
// Load up a ScopeId for this vcomponent
let scope = self.load_scope_from_vcomponent(component);
component.scope.set(Some(scope));
match unsafe { self.run_scope(scope).extend_lifetime_ref() } {
Ready(t) => self.mount_component(scope, template, t, idx),
Aborted(t) => self.mount_aborted(template, t),