It's ok to use `savedStateHandle` to get data as r...
# compose-android
j
It's ok to use
savedStateHandle
to get data as result from child compose to parent compose. But the opposite? I can simple using save data into current
savedStateHandle
then recovery using previews
backstack
savedStateHandle
. Is that ok too?
b
I don't remember exactly why this was causing trouble for me but I ended up using SharedViewModel. I implemented a QR Scanner in
Screen B
which get's invoked from
Screen A
. On QR Scan, it should send back the result to
Screen A
. But yeah, I'm using SharedVM.