Skip to content
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

Question about Multi module result back case #539

Closed
miduch opened this issue Nov 23, 2023 · 1 comment
Closed

Question about Multi module result back case #539

miduch opened this issue Nov 23, 2023 · 1 comment

Comments

@miduch
Copy link

miduch commented Nov 23, 2023

Is it possible to have something like following?

moduleA has

@Destination
@Composable
fun RecipientScreen(
    resultRecipient: ResultRecipient<SenderScreen, String>,
) { 
}

moduleB has:

@Destination
@Composable
fun SenderScreen(
    resultBackNavigator: ResultBackNavigator<String>,
) { 
}

moduleA has dependency to moduleB.

Q: Is it possible to receive result from SenderScreen/moduleB without needing manual calls?

@raamcosta
Copy link
Owner

Check this from the docs, ksp runs only in each module in isolation, so you'd have to do something like this:

https://composedestinations.rafaelcosta.xyz/navigation/backresult#multi-module-result-back-case

Let me know if it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants