I also used this technique to communicate from a tab screen to the root screen, as i needed to animate the bottom nav according to some state in a very deep composable function. I would try to avoid this as possible, still it is working in my case.
1 year ago
It looks super handy indeed. My main concern is testing, after that, hiding implementations. It could get very hard to debug I would imagine if app gets big.