make entry key return scopeid

This commit is contained in:
Evan Almloff committed 2023-01-23 10:08:11 -06:00
1 parent bdb63d18f3
commit 82e2175500
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ impl VirtualDom {
let parent = self.acquire_current_scope_raw();
let entry = self.scopes.vacant_entry();
let height = unsafe { parent.map(|f| (*f).height + 1).unwrap_or(0) };
let id = ScopeId(entry.key());
let id = entry.key();
entry.insert(ScopeState {
parent,