From 09b08f64f5d5b50e1560491a10da827271f123bc Mon Sep 17 00:00:00 2001 From: Ke7in <60681675+luckynumberke7in@users.noreply.github.com> Date: Tue, 20 Aug 2024 21:40:23 -0400 Subject: [PATCH] Update "hidden" in use_document Changed to hide elements by default on server. --- src/use_document.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/use_document.rs b/src/use_document.rs index 16cd226..5a3f1bc 100644 --- a/src/use_document.rs +++ b/src/use_document.rs @@ -225,7 +225,9 @@ impl UseDocument { ); impl_ssr_safe_method!( - hidden(&self) -> Option + /// Hides on server by default + hidden(&self) -> bool; + .unwrap_or(true) ); impl_ssr_safe_method!(