The concept of "work done for California" does not exist. If the work is done in Texas (at your house), you pay Texas taxes (no income tax).
Some states are more aggressive than others. Although you're right in general, there is actually a history of CA going aggressively after the money of residents of other states, like the screenwriter in AZ that did a lot of work for a California customer: https://ota.ca.gov/wp-content/uploads/sites/54/2019/08/18032...
The moment I left California the state I paid income tax to changed.
Think of it this way: all of the government services I use are in the state I reside in. I use literally $0 in California services. Not police, not fire department, not roads: nada.
California had a reputation for being very strict about whether you are a “resident.” But it’s not infinite.
Once you’re gone, they can’t tax you.
There are some exceptions for people who live near in a neighboring state, but work physically in California.
In yes, for no.