Skip to content

When the app is closed then the subscribeAsState() doesn't work #681

@giorgioprovenzale

Description

@giorgioprovenzale

I have a simple app with tab bar navigation.
The navigation is done with bringToFront API

fun onTabChange(tab: String) {
        tabsNavigation.bringToFront(
            when (tab) {
                "home" -> TabsConfigs.HeadlinesConfig
                "source" -> TabsConfigs.SourcesConfig
                else -> TabsConfigs.CategoriesConfig
            }
        )
    }

It works properly, the state is updated and the active tab is highlighted correctly.

clicking back I use pop() to go back and then in the end the app is closed. Once I open it again the state is not updated correctly.
When I click on another tab the tab is not highlighted anymore and the Child is not shown correctly.

What can be the issue?

Here a screen recording

Screen_recording_20240402_184647.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions