fix: make sure to set scope on none
This commit is contained in:
1 parent
48b1bf2ac1
commit
6b41c9d193
2 files changed
+10
-1
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user