Hey <@U0234N0QYSK> I have some NavArgs data class ...
# compose-destinations
s
Hey @Rafael Costa I have some NavArgs data class in a module different from my app module When trying to use the data class like this
navArgs = ProfileScreenNavArgs::class
It says
Copy code
[ksp] com.ramcosta.composedestinations.codegen.commons.IllegalDestinationsSetup: Cannot detect default value for navigation argument 'serverID' because we don't have access to source code. Nav argument classes from other modules with default values are not supported!
How do we circumvent this?
r
Don’t use default values. Use nullable and pass null. Internally have the logic to default to what you need if it is null.
1
Or copy the nav args class to the module you’re using it on
s
Great The first solution looks good i was thinking even nullables would throw the same error
👍 1
Thank you so much for the quick reply. Much appreciated always
👍 1