simple-stack-compose-integration icon indicating copy to clipboard operation
simple-stack-compose-integration copied to clipboard

Consider if it should be possible to somehow get a reference to the Backstack created in ComposeNavigator

Open Zhuinden opened this issue 1 year ago • 0 comments

https://github.com/Zhuinden/simple-stack-compose-integration/blob/392aea6d394f04d74cf00cfd7b6f50d04078a488/core/src/main/java/com/zhuinden/simplestackcomposeintegration/core/ComposeNavigator.kt#L27

When nesting, it might make sense to expose the Backstack created in ComposeNavigator, so that a parent can potentially call goBack() on it when back is not intercepted automatically.

Or maybe trigger navigations from outside, without having to be inside the composition to get the inner backstack from a CompositionLocal.

But is there even an idiomatic way to do this?

Zhuinden avatar Apr 08 '23 22:04 Zhuinden