Skip to content

Destination missing when built with custom route override #729

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

Open
janseeger opened this issue Mar 24, 2025 · 0 comments
Open

Destination missing when built with custom route override #729

janseeger opened this issue Mar 24, 2025 · 0 comments

Comments

@janseeger
Copy link

I am currently migrating code from v1 (1.11.9) to v2 (2.1.0) and have encountered an issue where some Destinations are not built and are thus missing after the KSP ran.

@Destination(
    route = "inbox",
    deepLinks = [
        DeepLink(uriPattern = PREFIX_URI1 + FULL_ROUTE_PLACEHOLDER),
        DeepLink(uriPattern = PREFIX_URI2 + FULL_ROUTE_PLACEHOLDER),
    ],
)
@Composable
fun InboxWithMoreComplexNameThanJustInbox()

works and generates the correct code, but when converted to v2

@Destination<InboxGraph>(
    route = "inbox",
    deepLinks = [
        DeepLink(uriPattern = PREFIX_URI1 + FULL_ROUTE_PLACEHOLDER),
        DeepLink(uriPattern = PREFIX_URI2 + FULL_ROUTE_PLACEHOLDER),
    ],
)

it stops working unless the route parameter is removed. But then the Deep Links stop working.

Any advice?

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

1 participant