Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose flow of current screens #68

Closed
aurimas-zarskis opened this issue May 18, 2022 · 2 comments
Closed

Expose flow of current screens #68

aurimas-zarskis opened this issue May 18, 2022 · 2 comments

Comments

@aurimas-zarskis
Copy link

aurimas-zarskis commented May 18, 2022

Hello, I'm currently trying to execute some logic based on current screen, but I can't find any callback that would give me current screen. Would be really nice if there is a way to expose flow of current screens. I would need such functionality for all navigators (tab, bottomSheet and regular navigator)

@Syer10
Copy link
Contributor

Syer10 commented May 18, 2022

Your probably looking for something like this? Look here for an explanation on snapshot flows.

val flow = remember(navigator) { snapshotFlow { navigator.lastItem } }

@aurimas-zarskis
Copy link
Author

Thanks, wasn't aware of these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants