Jonas
03/18/2025, 10:38 AMInfo(useCase: UseCase, ...)
Loading(useCase: UseCase, ...)
Success(useCase: UseCase, ..., additionalNotSharedParameter)
(UseCase is an enum in this example)
For the time being all our parameters are supported “primitives”.
We now started to move the shared parameters in its own data class to make the handling easier:
Info(details: Details(useCase: UseCase, ...))
The details class is serializable on its own.
The problem is, now we need to specify a custom NavType for every composable in this graph.
Is this kind of nesting an anti-pattern in general, should we just live with the NavType or is there a better solution?Jonas
03/19/2025, 7:38 AM