Skip to content

Demonstrates a bug using custom types with compose navigation

Notifications You must be signed in to change notification settings

jacobtabak/ComposeNavTypes

Repository files navigation

Demonstrates what seems to be a bug with custom types and compose navigation.

In the main activity, there's a class called Props that gets updated (and forces a recomposition) every second.

The UI shows a screen with 3 NavHosts.

The first NavHost has a start destination with a custom type. It lives in a separate composable, and re-navigates to its start destination every time the props get updated.

The second NavHost is identical to the first, except it is defined in the same composable as the props class is being mutated.

The third NavHost is also identical to the first, other than the fact that its start destination does not have a custom type.

Screen_recording_20241016_004007.mp4

About

Demonstrates a bug using custom types with compose navigation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages