create_rw_signal

Function create_rw_signal 

Source
pub fn create_rw_signal<T>(value: T) -> RwSignal<T>
where T: Any + 'static,
👎Deprecated since 0.2.0: Use RwSignal::new for sync signals or RwSignal::new_local for local ones
Expand description

Creates a new RwSignal which can act both as a setter and a getter.

Accessing the signal value in an Effect will make the Effect subscribe to the value change of the Signal. And whenever the signal value changes, it will trigger an effect run.