Thread
#compose
    m

    Mohamed Ibrahim

    1 year ago
    So I wondering if there’s an extension function that do the following,
    if (condition){
      wrapComposableWith( Container() )
    } else {
      createComposable
    }
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    1 year ago
    Can you elaborate? What are those functions supposed to do? In particular, it doesn’t make sense to “create” a composable so I’m not sure what you mean there.
    m

    Mohamed Ibrahim

    1 year ago
    createComposable -> same as calling Composable()
    I need a short syntax for the snippet; I call the composable wrapped with a container if the condition is true. Otherwise, I call the composable directly.
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    1 year ago
    There’s no special way to do that. Seems like a very specific thing you're trying to do