Skip to main content

use_browser_library

Function use_browser_library 

Source
pub fn use_browser_library(
    name: &'static str,
    enabled: impl FnMut() -> bool + 'static,
) -> Resource<Result<bool, String>> 
Expand description

enabled 可订阅组件状态;卸载会取消 Resource,迟到的加载结果不会挂载旧组件。