Skip to content

Commit

Permalink
Merge pull request #3082 from LhonRafaat/fix-scopes-typo
Browse files Browse the repository at this point in the history
docs(injection scopes): fix typo
  • Loading branch information
kamilmysliwiec authored Aug 28, 2024
2 parents fd1d769 + 8153497 commit 20b1b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/fundamentals/provider-scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Similarly, for [custom providers](/fundamentals/custom-providers), set the `scop

> info **Hint** Import the `Scope` enum from `@nestjs/common`
Singleton scope is used by default, and need not be declared. If you do want to declare a provider as singleton scoped, use the `Scope.DEFAULT` value for the `scope` property.
Singleton scope is used by default and does not need be declared. If you do want to declare a provider as singleton scoped, use the `Scope.DEFAULT` value for the `scope` property.

> warning **Notice** Websocket Gateways should not use request-scoped providers because they must act as singletons. Each gateway encapsulates a real socket and cannot be instantiated multiple times. The limitation also applies to some other providers, like [_Passport strategies_](../security/authentication#request-scoped-strategies) or _Cron controllers_.
Expand Down

0 comments on commit 20b1b96

Please sign in to comment.