remove signal write warnings (#4024)
This commit is contained in:
1 parent
1ac57f1a36
commit
d857629115
5 files changed
+4
-30
No files matched your search
@@ -1,7 +1,6 @@
|
||||
use dioxus_core::{ScopeId, VirtualDom};
|
||||
pub use dioxus_devtools_types::*;
|
||||
use dioxus_signals::{GlobalKey, Writable};
|
||||
use warnings::Warning;
|
||||
|
||||
/// Applies template and literal changes to the VirtualDom
|
||||
///
|
||||
@@ -19,11 +18,7 @@ pub fn apply_changes(dom: &VirtualDom, msg: &HotReloadMsg) {
|
||||
index: template.key.index as _,
|
||||
};
|
||||
if let Some(mut signal) = ctx.get_signal_with_key(key.clone()) {
|
||||
dioxus_signals::warnings::signal_read_and_write_in_reactive_scope::allow(|| {
|
||||
dioxus_signals::warnings::signal_write_in_component_body::allow(|| {
|
||||
signal.set(Some(value));
|
||||
});
|
||||
});
|
||||
signal.set(Some(value));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user