diff --git a/leptos_server/src/action.rs b/leptos_server/src/action.rs index 2f1c7fa50b..294a3b0b03 100644 --- a/leptos_server/src/action.rs +++ b/leptos_server/src/action.rs @@ -1,8 +1,10 @@ //use crate::{ServerFn, ServerFnError}; +#[cfg(debug_assertions)] +use leptos_reactive::console_warn; use leptos_reactive::{ - console_warn, create_rw_signal, is_suppressing_resource_load, - signal_prelude::*, spawn_local, store_value, try_batch, use_context, - ReadSignal, RwSignal, StoredValue, + create_rw_signal, is_suppressing_resource_load, signal_prelude::*, + spawn_local, store_value, try_batch, use_context, ReadSignal, RwSignal, + StoredValue, }; use server_fn::{error::ServerFnUrlError, ServerFn, ServerFnError}; use std::{cell::Cell, future::Future, pin::Pin, rc::Rc};