Feat: dirty hack to enable send + sync on virtual dom

This commit is contained in:
Jonathan Kelley committed 2021-05-28 00:28:09 -04:00
1 parent fe67ff9fa4
commit 4d5c528b07
6 files changed
+36 -43

No files matched your search

+6
View File
@@ -467,6 +467,12 @@ impl VirtualDom {
}
}
// TODO!
//
// These impls are actually wrong. The DOM needs to have a mutex implemented.
unsafe impl Sync for VirtualDom {}
unsafe impl Send for VirtualDom {}
/// Every component in Dioxus is represented by a `Scope`.
///
/// Scopes contain the state for hooks, the component's props, and other lifecycle information.