From d577aadddd91f40e2d69a7b257a20a4147129292 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Fri, 9 Feb 2024 17:46:15 -0500 Subject: [PATCH] remove warning in release mode --- leptos_server/src/action.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/leptos_server/src/action.rs b/leptos_server/src/action.rs index 2f1c7fa50..294a3b0b0 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};