Function use_share_radio
pub fn use_share_radio<Value, Channel>(
radio: impl FnOnce() -> RadioStation<Value, Channel>,
)where
Channel: RadioChannel<Value>,
Value: 'static,Available on crate feature
radio only.Expand description
Provide an existing RadioStation to descendant components.
This is useful for sharing the same global state across different parts of the component tree
or across multiple windows.