I'm using AndroidX Navigation 2.7.0-alpha07 in my Compose Multiplatform app. How do I fix unresolve reference ID issue?
h
Hristijan
09/09/2024, 9:45 PM
try
2.8.0-alpha09
y
Yassine Abou
09/09/2024, 9:51 PM
Thanks, I updated the library and the issue is resolved. but why the documentation is not updated?
i
Ivan Matkov
09/11/2024, 11:49 AM
Originally
id
is about integer for Android XML resource, it's not support on multiplatform.
For 2.8 it was ported as part of type-sage args support, but explicitly marked for internal usage and is not part of common API.
Applications are NOT supposed to use it. For compose navigation unique id is
route
(in original Android Google's library too,
id
is just
hashCode()
from route for compatibility)
Ivan Matkov
09/11/2024, 11:52 AM
but why the documentation is not updated?
2.8.x is requires Compose Multiplatform 1.7 (stable version is not released yet)