Vitor Prado

    Vitor Prado

    1 year ago
    hey guys.. is there a way to send an parcelable to compose navigation via
    navigate("")
    ?
    i

    Ian Lake

    1 year ago
    No. Here's one of the previously threads on this same question: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1604053414451400
    KD

    KD

    1 year ago
    @Ian Lake is sending
    parcelable
    a good idea though 🤔 . I understand this will be similar to how things are being done in the fragment world, but the problem is solved if an
    id
    is passed to the
    navigate()
    ?
    i

    Ian Lake

    1 year ago
    KD

    KD

    1 year ago
    exactly. never did it anyways. Always preferred to pass the least amount of data 👍 .
    Vitor Prado

    Vitor Prado

    1 year ago
    I changed the code to send just the object id
    KD

    KD

    1 year ago
    One can always take the passed
    id
    field and refer to local cache
    Stylianos Gakis

    Stylianos Gakis

    1 year ago
    How bad is it to something like this? https://stackoverflow.com/a/65619560/9440211. At least for some sample project that has no local cache or something of that sorts, it should work as a hacky solution. But other than that, what are the reasons I would NOT want to do this for a simple screen that just renders one data object (for example a detail screen of something)?