-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Add APP_INITIALIZER token handler #1518
Comments
In most cases, async providers + |
I think that now when we have async providers, |
I'm submitting a...
Current behavior
Nest does not evaluate the order of the initalization of a provider. It would be useful to load certain providers on application initialization, blocking the initialization of the normal providers in case an APP_INITIALIZOR provider uses a promise.
More in this article
Expected behavior
Providers which uses the
APP_INITIALIZER
token should be executed when the application is being initalized.What is the motivation / use case for changing the behavior?
Could be useful to register routes on initialization with #1438
Blockers: #1517
Others:
APP_INITIALIZER Angular Docs
The text was updated successfully, but these errors were encountered: