Nacho Ruiz Martin
05/10/2024, 12:55 PMNacho Ruiz Martin
05/10/2024, 1:09 PMArkadii Ivanov
05/10/2024, 3:27 PMNacho Ruiz Martin
05/10/2024, 3:28 PMArkadii Ivanov
05/10/2024, 3:28 PMNacho Ruiz Martin
05/21/2024, 9:21 AM//It's a fake Firebase URL but it's close to reality
<https://console.firebase.google.com/project/uludi-81bcf/users/create>
Leaving aside the host name, this URL has two parts:
1. /project/uludi-***
-> This one isn’t really expressing navigation, but more like parameters
2. /users/create
-> This one is really navigation
Now imagine that from the navigation part:
1. /users
express a destination on the main “graph”
2. But /create
is actually a dialog destination
I’m really struggling to model this in the Decompose way.
Web routing frameworks usually work with routing patterns like:
//main.kt
Routes {
route("/project/%id") { id ->
RootLayout {
route("authentication") {
AuthenticationScreen()
}
}
}
else {
ProjectSelectionScreen()
}
}
@Composable
fun AuthenticationScreen() {
...
route("create") {
UserCreationDialog()
}
}
Syntax and API are absolutely made up.
Do you think that sharing a single WebHistoryController in all nested navigations would be a way to go?Arkadii Ivanov
05/21/2024, 9:36 AMArkadii Ivanov
05/21/2024, 9:38 AMNacho Ruiz Martin
05/21/2024, 9:39 AMNacho Ruiz Martin
05/21/2024, 9:39 AM