Depending on the outcome, I think that we'd be able to figure some solution that works for what would become the nation of California (based on what land actually CalExits.)
Worst case scenario - either de-salt the water in the ocean, or buy it. If the United States can sell electricity with Mexico given our contentious at times relationship, I'm sure we could figure it out.
Totally agree with you - in principle it would be difficult, messy, and would very much be a disruptive conversation to have with America.
Then again, even the Trump campaign expected they would be unsuccessful in the end.