Comment by bsnnkv
Others have already written in their comments on this post about how silly the idea of loyalty to a company is.
I think all I'll add to that is that I have ended up at the point where I doubt I'll ever give my "best" work to an employer again - I'm just there to put the JIRA tickets in the bag, so to speak.
My best work is now exclusively reserved for things in my free time that I have a personal interest in.
What does loyalty have to do with the quality of your work?
I’m all for boundaries by the way, not overworking etc, but my “best” work tends to come out unpredictably when the conditions are right. The people and project matter, but the fact that employment is transactional doesn’t really factor in for me.