Provide option to do full rebuilds when nessisary
This commit is contained in:
1 parent
3c229b38bc
commit
b3d119b815
6 files changed
+217
-95
No files matched your search
@@ -157,9 +157,16 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
new_template = hot_reload_wait => {
|
||||
if let Some(new_template) = new_template {
|
||||
vdom.replace_template(new_template);
|
||||
msg = hot_reload_wait => {
|
||||
if let Some(msg) = msg {
|
||||
match msg{
|
||||
dioxus_hot_reload::HotReloadMsg::UpdateTemplate(new_template) => {
|
||||
vdom.replace_template(new_template);
|
||||
}
|
||||
dioxus_hot_reload::HotReloadMsg::Shutdown => {
|
||||
std::process::exit(0);
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user