docs(migration-guide): update hint for global module initalization

The hint for global module initialization is invalid. Global modules
not treated as if they depend on all other modules. Instead, all
other modules are treated as if they depend on global modules.
This commit is contained in:
Peter Žáčik
2025-05-27 11:34:26 +02:00
committed by Peter Žáčik
parent 2fb4cd6057
commit bdefe85456

View File

@@ -178,7 +178,7 @@ While the `OnModuleDestroy` hooks are executed in the reverse order:
A -> B -> C
```
> info **Hint** Global modules are treated as if they depend on all other modules. This means that global modules are initialized first and destroyed last.
> info **Hint** Global modules are treated as a dependency of all other modules. This means that global modules are initialized first and destroyed last.
#### Middleware registration order