Marcin S.
banner
cinusek.bsky.social
Marcin S.
@cinusek.bsky.social
Software development, travel, photography...
Likes a good TV show and has a weak spot for sci-fi.

Creator of @homeraudioplayer.app
Flickr: https://flickr.com/photos/99713922@N08
Thanks, I'll explore using metadata. But I've got to say I hoped for something a bit more type-safe than string-to-any 🙃

Having said that, Nav3 seems way better than Nav2 already. As soon as it hits beta I'll convert my pet project.
October 15, 2025 at 6:13 PM
previousEntries must be NavEntry<SubsettingNav> to satisfy the generic type. But my backstack will contain non-settings destinations too.
Shouldn't I be able to use a wider type for previousEntries, e.g. NavEntry<AppNav>?

I probably completely misunderstand how these classes are meant to be used...
October 15, 2025 at 2:25 PM
Now I'd like to make a Scene specific to SubsettingNavs that displays the title:

class SettingsScene(
override val previousEntries: List<NavEntry<???>>,
) : Scene<SubsettingNav> ...

but the type of previousEntries is a problem.

🧵 2/3 🧵
October 15, 2025 at 2:25 PM