diff --git a/leptos_reactive/src/memo.rs b/leptos_reactive/src/memo.rs index 71aa12950..e4a6e7416 100644 --- a/leptos_reactive/src/memo.rs +++ b/leptos_reactive/src/memo.rs @@ -191,7 +191,8 @@ impl SignalGetUntracked for Memo { )] fn get_untracked(&self) -> T { with_runtime(self.runtime, move |runtime| { - match self.id.try_with_no_subscription(runtime, T::clone) { + let f = move |maybe_value: &Option| maybe_value.clone().unwrap(); + match self.id.try_with_no_subscription(runtime, f) { Ok(t) => t, Err(_) => panic_getting_dead_memo( #[cfg(debug_assertions)]