NestJS · Senior · Question 55 of 75

Why do lifecycle hooks not run for request-scoped or transient providers in the usual way?

Explanation

Put initialization that must run once into singleton providers.

Further reading

Problem with a question

NestJS · Senior · question 55

Test yourself

Take the NestJS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz