fix hotreload cfg on release builds

This commit is contained in:
Jonathan Kelley 2024-02-02 16:17:52 -08:00
parent dc5e4e3738
commit a3d6e9d07a
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE

View file

@ -113,7 +113,7 @@ pub fn launch_with_props_blocking<P: 'static>(root: Component<P>, props: P, cfg:
EventData::Poll => app.poll_vdom(id),
EventData::NewWindow => app.handle_new_window(),
EventData::CloseWindow => app.handle_close_msg(id),
#[cfg(feature = "hot-reload")]
#[cfg(all(feature = "hot-reload", debug_assertions))]
EventData::HotReloadEvent(msg) => app.handle_hot_reload_msg(msg),
EventData::Ipc(msg) => match msg.method() {
IpcMethod::FileDialog => app.handle_file_dialog_msg(msg, id),