Tim Malseed
02/07/2022, 1:25 AMtopics/topic1, or topics/topic1/topics/topic2 . The depth of recursion is undefined.. I’m not sure how to implement this, as implementing a composable for each possible level, e.g. composable(topic/{topicId}/subTopic{subTopicId}/moreSubtopic/{moreSubTopicId} doesn’t seem practicalIan Lake
02/07/2022, 1:39 AMtopic/{topicId} different semantically from topic/{subTopicId}?Tim Malseed
02/07/2022, 1:41 AMIan Lake
02/07/2022, 1:42 AMTim Malseed
02/07/2022, 1:43 AMIan Lake
02/07/2022, 1:44 AMTim Malseed
02/07/2022, 1:45 AMmyscreen/topics/{topicId}. Each time you want to navigate a level deeper, it calls navController.navigate("myscreen/topics/${topic.id}
But, when I attempt to retrieve the topicId from the NavBackStackEntry, once I’m more than one level deep, I seem to get a stale one. Which is what made me think this approach was incorrect.Ian Lake
02/07/2022, 1:46 AMNavBackStackEntry that is explicitly passed to your composable lambda, you'll get the exact set of arguments you passed into itIan Lake
02/07/2022, 1:47 AMnavController.currentBackStackEntry, etc.)Ian Lake
02/07/2022, 1:48 AMTim Malseed
02/07/2022, 1:48 AM