To me this feels a lot like that anecdote about poor people struggling to become wealthy because they buy cheaper boots that wear out faster. If you change jobs frequently chasing relatively inconsequential salary increases, you're perhaps going to miss more lucrative opportunities.
My first internship at Toyota barely paid anything (relative to a bay area internship), but I stuck around for 4 years because the work was interesting and fun. It helped hone my technical skills, and the value from networking from that job continues to pay off 12 years later.
Since I graduated, I've been at three different companies. I've stuck around to see projects through their hardest points, and only left for exciting new technical opportunities. The first one with the lowest salary has in time been worth the most in equity. The one with the highest salary has in time been worth the least, but the liquidity at that point in my life was nice. I took a huge salary cut when joining my current company, but I had a feeling that it was a good group of people. It's been almost 6 years now, and I can only describe my experience as an embarrassment of riches.
You could write my experience off as luck or individual talent, but I think a part of my success has come from my work ethic. I work to feel useful, solve interesting problems and create tangible value. It seems like if you focus on that, everything else tends to fall into place. A college age friend once joined a project I was on, as a remote contract technician. He asked me for advice on how to become a full time engineer. I told him to figure out how to be as productive as possible by automating his job away, and document it. He ended up being 4x more productive than the other techs getting paid 3x as much, and six months later was a full time employee with a bay area salary and equity.