This commit is contained in:
Evan Almloff committed 2023-08-07 12:32:46 -07:00
1 parent 717c09c4a3
commit 7f2049b647
6 files changed
+137 -4

No files matched your search

+9
View File
@@ -64,6 +64,15 @@ impl<T: 'static> CopyValue<T> {
}
}
pub(crate) fn invalid() -> Self {
let owner = current_owner();
Self {
value: owner.invalid(),
origin_scope: current_scope_id().expect("in a virtual dom"),
}
}
pub fn origin_scope(&self) -> ScopeId {
self.origin_scope
}