Fix compile

This commit is contained in:
Jonathan Kelley committed 2024-01-29 17:03:50 -08:00
1 parent cef64d43df
commit 8cc17dc1bd
4 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -96,7 +96,7 @@ fn use_maybe_signal_sync<T: 'static, U: Storage<SignalData<T>>>(
// By default, we want to unsubscribe the current component from the signal on every render
// any calls to .read() in the body will re-subscribe the component to the signal
use_before_render(|| signal.unsubscribe(current_scope_id().unwrap()));
use_before_render(move || signal.unsubscribe(current_scope_id().unwrap()));
signal
}