Skip to content

Commit 8a1d75e

Browse files
Merge pull request #2213 from bilby91/circular-dependency-scope-clarification
Clarify circular dependency usage with Scope.REQUEST
2 parents 71bb3bf + e774da7 commit 8a1d75e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/fundamentals/circular-dependency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class CommonService {
5454
}
5555
```
5656

57-
> warning **Warning** The order of instantiation is indeterminate. Make sure your code does not depend on which constructor is called first.
57+
> warning **Warning** The order of instantiation is indeterminate. Make sure your code does not depend on which constructor is called first. Having circular dependencies depend on providers with `Scope.REQUEST` can lead to undefined dependencies. More information available [here](https://github.com/nestjs/nest/issues/5778)
5858
5959
#### ModuleRef class alternative
6060

0 commit comments

Comments
 (0)