Function sycamore::reactive::create_signal_from_rc
source · [−]pub fn create_signal_from_rc<T>(
cx: BoundedScope<'_, '_>,
value: Rc<T>
) -> &Signal<T>
Expand description
Create a new Signal
under the current Scope
but with an initial value wrapped in a
Rc
. This is useful to avoid having to clone a value that is already wrapped in a Rc
when
creating a new signal. Otherwise, this is identical to create_signal
.