Skip to main content

staticCompositionLocalWithComputedDefaultOf

Function staticCompositionLocalWithComputedDefaultOf 

Source
pub fn staticCompositionLocalWithComputedDefaultOf<T: Clone + PartialEq + 'static>(
    compute: impl Fn(&CompositionLocalAccessorScope) -> T + 'static,
) -> StaticCompositionLocal<T>
Expand description

A StaticCompositionLocal whose default is computed at each read without a provider, from the other locals there. Compose’s staticCompositionLocalWithComputedDefaultOf.