JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.87k stars 1.15k forks source link

How to navigate to other composable function with new tab in compose web? #2552

Open GRNHACKER opened 1 year ago

GRNHACKER commented 1 year ago

I do not figure out how to create multiple pages and navigate from one to another. Help me with that.

pablichjenkov commented 1 year ago

There are a couple of options to do navigation and/or state management. Look for the following projects in github

I am working on one setup too. I need help with it so anyone welcome to participate. https://github.com/pablichjenkov/uistate3

arkivanov commented 1 year ago

Most likely you will need to setup deep-links in your app, and then just open a link in a new tab. The way you setup deep-links depends on what navigation library you are using, if any. routing-compose should work pretty well for Compose for Web.

okushnikov commented 1 month ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.