Skip to content

Allow exposing accessors for graph extensions directly without creators #900

@ZacSweers

Description

@ZacSweers
@DependencyGraph(isExtendable = true)
interface AppGraph {
  val loggedInGraph: LoggedInGraph
}

@ContributesGraphExtension(LoggedInScope::class)
interface LoggedInGraph {
  // ...
}

Main thing to keep in mind is we need to scope the instance we create if one is defined on the contributed graph (matches the Dagger behavior)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions