Josh Eldridge
02/08/2024, 2:01 AMdefaultValue
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:
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.