Thread
#compose
    John O'Reilly

    John O'Reilly

    1 year ago
    In @Manuel Vivo talk just now at "Kotlin Meetup Munich" he showed following but I can't resolve
    AmbientNavController
    for some reason....am using alpha02 of
    navigation-compose
    . Should this be available?
    i

    Ian Lake

    1 year ago
    It was removed prior to the alpha01
    As it led to tight coupling of components into Navigation, rather than being separately testable ala our testing guide: https://developer.android.com/jetpack/compose/navigation#testing
    John O'Reilly

    John O'Reilly

    1 year ago
    Is there something in it's place or is expectation that you pass
    navController
    down? Main reason I need it right now is to call
    navController.popBackStack()
    for back button
    Manuel Vivo

    Manuel Vivo

    1 year ago
    Ah! Sorry, the slides aren’t fully updated to the last version 🙈 my bad
    Should’ve checked before giving the talk
    the expectation is to pass it down to whenever it’s needed
    makes testing easier as well
    John O'Reilly

    John O'Reilly

    1 year ago
    I had it in a pre-alpha version and had taken it out all right (in favor of passing it down) after updating to alpha version.....but thought maybe I had mistakenly thought it was removed 🙂
    i

    Ian Lake

    1 year ago
    As per the testing page linked above, pass a
    popBack: () -> Unit
    lambda down