I've tried nav component and it's pretty, but i do...
# compose
a
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
a
@Javier ok, but i wanna send more params
Copy code
navController.navigate(DETAIL_SCREEN+"/${StateScreen.READ}?${note}")
i
More parameters are fine, just like in a restful web service
post/{postId}/comment/{commentId}
is a perfectly fine route
a
so, if one of these parameter is optional my route it should be like this:
post?postId={postId}/comment/{commentId}
i
Put required ones before the
?
, optional ones after
👍 1
Before the
?
is the path, after is the query parameters