The biggest issue with CA and moving abroad temporarily is that CA doesn't have a foreign earned income exclusion or foreign tax credit. So you really don't want to be a CA resident if you need to move out of the USA.
Since I moved to Switzerland (and then China, ironically enough) from CA, it was something I had to look into...I wasn't sure if they would come back and say I was a CA resident even though I really had no ties there. In particular, if I wanted to vote, I could have in CA, but that would have been a bad mistake. On the other hand, I wasn't eligible to vote in any other state, so I spent 11 years not voting. When I finally left China, it was for a job in CA...which also gave me some pause as I didn't intend to return to CA in the first place.