You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This needs to only attempt to initialize if any other service or controller depends on the service utilizing the initializer decorator.
In our instance, we have created a shared service as part of a shared package. We cannot start our fastify instance unless we explicitly inject the service. We don't always need to inject this service. When we don't inject it, fastify will not start because the initializer gets called regardless and never resolves the promise.
The text was updated successfully, but these errors were encountered:
fastify-decorators/plugins/simple-di/src/decorators/initializer.ts
Line 23 in 5f5aabc
This needs to only attempt to initialize if any other service or controller depends on the service utilizing the initializer decorator.
In our instance, we have created a shared service as part of a shared package. We cannot start our fastify instance unless we explicitly inject the service. We don't always need to inject this service. When we don't inject it, fastify will not start because the initializer gets called regardless and never resolves the promise.
The text was updated successfully, but these errors were encountered: