From 24febe11f372fcd19f930b6038a48b624c5f0e45 Mon Sep 17 00:00:00 2001 From: blorbb <88137137+blorbb@users.noreply.github.com> Date: Sat, 18 Nov 2023 07:20:03 +1100 Subject: [PATCH] feat: impl `Default` for `TextProp` (#2016) --- leptos_reactive/src/signal_wrappers_read.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/leptos_reactive/src/signal_wrappers_read.rs b/leptos_reactive/src/signal_wrappers_read.rs index 050e32be24..55d47aea8b 100644 --- a/leptos_reactive/src/signal_wrappers_read.rs +++ b/leptos_reactive/src/signal_wrappers_read.rs @@ -1364,3 +1364,9 @@ where TextProp(Rc::new(move || s().into())) } } + +impl Default for TextProp { + fn default() -> Self { + Self(Rc::new(|| Oco::Borrowed(""))) + } +}