-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
navArgs class from another module cannot have fields with default values #108
Comments
Hi @Sannedak ! This is not how this library is designed to work. The navigation module depends on all others, not the other way around. The navigation module builds a Navigation graph (from the outputs of each module) and calls the DestinationsNavHost passing the graph. I suggest you check my two multi module forks of very well known developers in the community Chris Banes and Philipp Lackner:
|
Thanks. I'll continue to use arguments duplication for now. |
I'm encountering the same issue. In my case, I'm using a data class from a shared KMM module as a navArgsDelegate for screen @destinations in an android app module. |
This works now, but the class cannot have default values. |
Hi! I want to make module "navigation" where will be placed all navigation args, but have compilation error:
There was an issue with 'navArgsDelegate' of composable 'ArticleDetailsScreen': make sure it is a class with a primary constructor
Minimal reproducible repo
In
ArticleDetailsNavArgs
instead of just id I want to pass object in the future. I don't want to duplicate exact the same object in another modules and map one to another.Thanks for your work! Awesome lib!
The text was updated successfully, but these errors were encountered: