Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    2 years ago
    Question about future direction: With so many things moving to modifiers (I believe yall intend to make the semantics stuff configurable via modifiers?), has there ever been any thought about making ambients configurable via modifiers? E.g.
    SomeComposable(modifier = Modifier.withAmbients(FooAmbient provides foo)) { … }
    Adam Powell

    Adam Powell

    2 years ago
    Much thought, I don't think that it's a good idea since they work with orthogonal concepts.
    Modifiers decorate UI elements, where ambients are a property of the composition.
    The composition builds the UI element tree.
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    2 years ago
    Cool, that makes sense. Thanks!