Skip to content

Commit cbe7687

Browse files
Merge pull request #2276 from micalevisk/patch-1
Clarify that lifecycle doesn't apply to lazy loaded modules
2 parents e186a1f + 7ebff7b commit cbe7687

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/fundamentals/lazy-loading-modules.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Lazy loading can help decrease bootstrap time by loading only modules required b
66

77
> info **Hint** If you're familiar with the **Angular** framework, you might have seen the "lazy-loading modules" term before. Be aware that this technique is **functionally different** in Nest and so think about this as an entirely different feature that shares similar naming conventions.
88
9+
> warning **Warning** Do note that [lifecycle hooks methods](https://docs.nestjs.com/fundamentals/lifecycle-events) are not invoked in lazy loaded modules and services.
10+
911
#### Getting started
1012

1113
To load modules on-demand, Nest provides the `LazyModuleLoader` class that can be injected into a class in the normal way:

0 commit comments

Comments
 (0)