fix conditional compilation for hot reloading

This commit is contained in:
Evan Almloff committed 2023-02-07 08:57:29 -06:00
1 parent e2a73127f3
commit 773a87d701
4 files changed
+25 -14

No files matched your search

+1
View File
@@ -185,6 +185,7 @@ pub fn launch_with_props<P: 'static>(root: Component<P>, props: P, cfg: Config)
}
Event::UserEvent(event) => match event.0 {
#[cfg(all(feature = "hot-reload", debug_assertions))]
EventData::HotReloadEvent(msg) => match msg {
dioxus_hot_reload::HotReloadMsg::UpdateTemplate(template) => {
for webview in webviews.values_mut() {