Contributed graph extensions example confusion #790
Replies: 2 comments 3 replies
-
The section you linked is about contributed graph extensions, but your code snippet is using |
Beta Was this translation helpful? Give feedback.
-
The documentation introduces contributed graph extensions as the way to address the separate problem of seeing I don't care that much if/how to fix the docs, if you don't agree, I just took note when thinking about how to best structure my graphs and wanted to seek clarification. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am unable to make sense of the contributed graph extensions example in the documentation: (https://zacsweers.github.io/metro/dependency-graphs/#the-problem). I suspect the example is not quite right, but I may be missing something.
The example describes a parent graph being defined in a parent module, and hypothesizes about the supposedly somewhat viable option of defining a (non-contributed) graph extension in a child module without a dependency on the parent module.
Isn't this entirely impossible in the first place? The child module does not see the parent module's graph interface, but would need to reference it in an
@Extends
parameter in its (non-contributed) graph extension factory:I can see how contributed graph extensions might help with this problem, but this is not what the example describes.
Beta Was this translation helpful? Give feedback.
All reactions