state taxes

hi, 

 

I moved from California to Texas in mid Jan 2021 due to change of employment. In July 2021 I have realized some capital gains on stock sale. Do I owe capital gains tax to California? The gains were realized while being Texas resident.

 

Thanks

AJ