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

Inject factory functions (scopes?) #8

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

Inject factory functions (scopes?) #8

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

Comments

@ferdinand-beyer
Copy link
Owner

A component may chose to dynamically obtain instances of a dependency.

Use case: Create a new Reitit router for every call in development.

Currently, this is possible by making the component instance a function, but this seems to complect two different things: Constructing an instance and deciding how to inject it.

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

During development, we might want some components to be started on every request, e.g. ring routes.

Partial restart of a system map?

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