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

Order-only dependencies #7

Open
ferdinand-beyer opened this issue Oct 25, 2022 · 1 comment
Open

Order-only dependencies #7

ferdinand-beyer opened this issue Oct 25, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ferdinand-beyer
Copy link
Owner

Allows modelling that a component needs to be started before another, without injecting the instance to the start function.

Use Case: Logging, and other libs that use global state

Instead of injecting a "logger" component, allow components to log with a global state, but ensure that logging is configured beforehand

@ferdinand-beyer ferdinand-beyer added the enhancement New feature or request label Oct 25, 2022
@ferdinand-beyer
Copy link
Owner Author

Could be achieved by transforming a config:

  • add dependency component
  • update all dependent component: Add dependency, wrap start-fn, stripping the added dependency.

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

No branches or pull requests

1 participant