Democrats know this. They even talk about how glorious it is to replace White people. Republicans in California didn't suddenly become more liberal. The population changed.
Same thing happened or is happening in all the border states: California, Arizona, New Mexico, Texas, Florida, and Georgia.
You lose another state and your heritage is toast.