You are a full-year resident of California if:
- your permanent home was in California for all of 2022, even if you were absent from or lived outside the state temporarily; or
- you were present in California for other than a temporary or transitory purpose.
This includes students attending school out-of-state whose permanent home is located in California.
https://www.freetaxusa.com/answers?id=4930