https://kotlinlang.org logo
#compose
Title
# compose
a

Alberto

10/30/2020, 10:03 AM
I've tried nav component and it's pretty, but i don't understand how to pass more params like an object, can i give more example? why i can't pass bundle?
j

Javier

10/30/2020, 10:05 AM
a

Alberto

10/30/2020, 10:41 AM
@Javier ok, but i wanna send more params
Copy code
navController.navigate(DETAIL_SCREEN+"/${StateScreen.READ}?${note}")
i

Ian Lake

10/30/2020, 3:37 PM
More parameters are fine, just like in a restful web service
post/{postId}/comment/{commentId}
is a perfectly fine route
a

Alberto

10/30/2020, 3:55 PM
so, if one of these parameter is optional my route it should be like this:
post?postId={postId}/comment/{commentId}
i

Ian Lake

10/30/2020, 4:34 PM
Put required ones before the
?
, optional ones after
👍 1
Before the
?
is the path, after is the query parameters