Depressions are usually triggered when you expect something but it doesn't go the way it has to.
The best way to get out of depression is to not hold yourself to the past but see towards the future.
It leads to lack of focus on work and also disturbs personal life.