Trying to pass on data from one screen to another ...
# multiplatform
s
Trying to pass on data from one screen to another using navigation 2's savedstatehandle. It says it only allows primitive type and a few more like list and map, but it doesn't check for types in the list internally so was able to pass on custom data using the handle and observing the key, but facing issue with background state as android is trying to save the handle data by parcelizing it which obviously is breaking on KMP as it's not supported directly. Although working on custom annotation to mimic the parcelize functionality, but is there any cleaner way to pass the data on any screen in the stack?
t
If you can migrate to navigation 3.. it's type safe
s
it's not stable right now so don;t want to jump there
c