Open Kyant0 opened 3 months ago
Can you provide use cases that how this would help? I mean, other libraries does this, but want to understand if there are real use cases that this can help or there are other ways to implement that same thing on voyager.
For example, there is a view pager (navigation host) and bottom bar. We want to click bottom tabs to navigate to specific screen.
I am looking for something similar, consider my usecase below. I am using compose for desktop.
BaseLayout( // Composable helper function that creates my base UI layout
sidebar = { SideBar() }, // Sidebar composable
body = {
Navigator(LoginScreen()) // the body
},
footer = {}. -- footer
)
I am now facing a challenge since I need to be able to access to navigator inside Sidebar. If I try to access it now, it throws an error.
Is there anyone with a suggested approach?
I see if it could be possible to create navigator and be able to pass it down as props, would help in my usecase.
There are some cases where we want to use navigator outside of
Navigator
composable, now we can only get the navigator inside it and pass it to outside, which is not graceful.The proposed API looks like: