Feat: dirty hack to enable send + sync on virtual dom
This commit is contained in:
1 parent
fe67ff9fa4
commit
4d5c528b07
6 files changed
+36
-43
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user