hey guys.. is there a way to send an parcelable to...
# compose
v
hey guys.. is there a way to send an parcelable to compose navigation via
navigate("")
?
i
No. Here's one of the previously threads on this same question: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1604053414451400
🙌 2
k
@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
k
exactly. never did it anyways. Always preferred to pass the least amount of data 👍 .
v
I changed the code to send just the object id
👏 2
k
One can always take the passed
id
field and refer to local cache
1
s
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)?