Unless the market is big, most employers give zero incentive to accumulate domain knowledge. Between learning the new hot framework and accruing domain knowledge, one is clearly better for the average dev's career.
The advice is great in a world where people remotely cared about good software and are willing to pay for it. Not such great advice for reality.