When I am using jetbrain navigation, seeing weird ...
# multiplatform
s
When I am using jetbrain navigation, seeing weird error during rebuilding the project
Copy code
popUpTo(homeNavigator.graph.findStartDestination().id)
in this code
.id is not found error
is being thrown by IDE, but when I run the project it works fine, only when I try to rebuild it from IDE option it throwing an error, can someone help to check..
i
Resources? I guess you meant navigation. Initially
id
is id of Android xml with defined destination. It's not applicable to Compose. It uses string
route
instead. It compiles because there is actual internal
id
property for implementation needs
s
My bad, jetbrain navigation,🙏
so should I change it to
Copy code
popUpTo(homeNavigator.graph.findStartDestination().route!!) {
    inclusive = false
}
?
i
id should be change to route, yes
it's not JB version related, it works for Android Compose too
s
got it thank you 🙏