Tlaster / PreCompose

Compose Multiplatform Navigation && State Management

Home Page:https://tlaster.github.io/PreCompose/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

navigator.currentEntry.collectAsStateWithLifecycle always returns null on iOS

FunkyMuse opened this issue · comments

val currentEntry by navigator.currentEntry.collectAsStateWithLifecycle(null)

if it's replaced with

val currentEntry by navigator.currentEntry.collectAsState(null) then it works, probably the LifecycleOwner doesn't work properly on iOS or it's not yet implemented?

Seems like the initial state of lifecycle in iOS is Initialized, not in Active state, I'm working on a fix now.

Seems like a quick fix, thanks.

@Tlaster can we get a release with this?

@Tlaster can we get a release with this?

Yes, I'm about to release a new version.