After some finding from my previous issue above, I...
# compose-android
j
After some finding from my previous issue above, I discovered it was cause of some referential equality issues specifically with the
defaultValue
when using a value that isn't a primitive and breaks referential equality like a long array. I'm wondering if we're not supposed to be using
NavType.LongArrayType
or other reference-based types inside a
navArgument
of Compose's NavGraph? I don't see it in the list of supported argument types here https://developer.android.com/guide/navigation/use-graph/pass-data#supported_argument_types, but it's still a valid type in the
NavType
class and the class doc also mentions arrays:
Copy code
There are built-in NavTypes for primitive types, such as int, long, boolean, float, and strings, parcelable, and serializable classes (including Enums), as well as arrays of each supported type.