This web page grinds through all the details:
https://blog.savvynomad.io/california-residency-laws/
Good info. That said, there are lots of people that live in one state and work in another state and file their taxes accordingly.