Function use_share_radio

Source
pub fn use_share_radio<Value, Channel>(
    radio: impl FnOnce() -> RadioStation<Value, Channel>,
)
where Channel: RadioChannel<Value>, Value: 'static,
Expand description

Provide the given RadioStation to descendants components, this is the same as when using use_init_radio_station except that you pass an already created one.

This is specially useful to share the same RadioStation across different windows.