Skip to content

Commit

Permalink
feat: impl Default for TextProp (#2016)
Browse files Browse the repository at this point in the history
  • Loading branch information
blorbb authored Nov 17, 2023
1 parent 64b1e9b commit 24febe1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions leptos_reactive/src/signal_wrappers_read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1364,3 +1364,9 @@ where
TextProp(Rc::new(move || s().into()))
}
}

impl Default for TextProp {
fn default() -> Self {
Self(Rc::new(|| Oco::Borrowed("")))
}
}

0 comments on commit 24febe1

Please sign in to comment.