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

Added callback for getting breadcrumbs from navigation #63

Closed
wants to merge 2 commits into from

Conversation

r4zzz4k
Copy link

@r4zzz4k r4zzz4k commented Dec 12, 2022

I'm working on adding tracing and performance analytics to the app. Right now Odyssey provides one way to monitor transactions. RootController.currentScreen outputs updates related to shown and removed screens. Unfortunately, this flow doesn't emit stream of events which correspond to screen changes one-to-one.

This PR adds new callback which can be used by the app to monitor screen changes. It filters some event sources and helps with nested navigation (e.g. bottom navigation tabs switching emits both tab name and owner screen name).

Unfortunately, this doesn't cover multiple layers of nesting (like bottom navigation where the screen also has tabs). Also, I'm not 100% sure on the format of the data.

Could you please check the general direction of this change? Are there any caveats I should know, or maybe you have some different takes on solving this?

@AlexGladkov
Copy link
Owner

Added in release 1.3

@r4zzz4k r4zzz4k deleted the watch-nav-events branch January 2, 2023 17:47
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

Successfully merging this pull request may close these issues.

None yet

2 participants