This is how I approach it too and I think it's a healthy approach. I get into a job mainly for the learning opportunities it provides. I'll happily take a pay cut if it means I get to grow in a direction I need. Once I feel like the opportunities become fewer and farther between, and management cannot change that, I'll find a new job that can provide me with the right learning opportunities again.
Of course, I'm not even in my thirties, so I can afford to optimise for learning now to have the compound interest pay off for it when I'm older.
Of course, I'm not even in my thirties, so I can afford to optimise for learning now to have the compound interest pay off for it when I'm older.