Closed tomoya0x00 closed 4 months ago
Hi @tomoya0x00 ! 👋
Thank you so much for reporting! I am on it 🙂 Should be an easy fix.
not sure if related but we also have this error happening when upgrading to latest version
[ksp] com.ramcosta.composedestinations.codegen.commons.IllegalDestinationsSetup: Navigation arguments using function calls with parameters as their default value are not currently supported (near: 'koinViewModel { parametersOf(productId, eventId, isUserVerified, productName, accessType) },) {MviScreen(state = viewModel.state, onSideEffect = { sideEffect -> consumeSideEffect(sideEffect = sideEffect, navigation = navigation) }, onBackPressed = { viewModel.execute(TokenGatedAccessVerificationIntent.Close) }) { view ->TokenGatedAccessVerificationLandingContent(state = view, executeIntent = viewModel::execute)}LocalLifecycleOwner.current.ObserveLifecycle(onResume = { viewModel.execute(TokenGatedAccessVerificationIntent.OnResume) },onPause = { viewModel.execute(TokenGatedAccessVerificationIntent.OnPause) },)}')
Fixed on v2 beta11 versiosn :)
Building now.. in 30min or so it should be available! Let me know if it works for you guys!
@raamcosta
Sorry for my late reply. v2 beta11 works fine! Thx for your quick fix 👍
When updating from 2.0.0-beta09 to 2.0.0-beta10, the following error occurred.
My guess is that the following change has made it impossible to get default values in some cases.
https://github.com/raamcosta/compose-destinations/compare/2.0.0-beta09...2.0.0-beta10#diff-eb29417fbe8f288ceb56630797489074bdbe83910eb4037eb465ef23fd1234ffR248
As a concrete example, if a BGraph that an AGraph references in the A module as an ExternalNavGraph exists in the B module, and the startDestination of the BGraph has a default argument, the above error may occur.
For reference, the project structure of the application that is causing the problem is as follows:
:ui:login gradle module
:app gradle module