For example, if you work remote for a company based in NY, PA, CT, DE, AR, or NE; your income is taxable in that state regardless of where you live or work. This is known as a "convenience of the employer" test. In fact, before a certain SCOTUS ruling you couldn't even claim a refund on that tax for your residence state's tax return (and even after, that refund is taxable).
California is already considering a wealth exit tax that would apply 10 years worth of tax nexus to anyone who leaves the state. I'd complain about this more, as it goes against the whole concept of freedom of movement... but the US already does the same thing. Emigrate from the US and you'll still be expected to pay US taxes on foreign income. I've heard there's a rule that exempts you from said taxes if you spend the entire tax year outside the US. Some people also take the really risky step of throwing out their US citizenship... which is actually grounds to be permanently banned from entering the US for any reason if they find out that you did so for tax purposes.