Are there fixed costs to having a connection?
As in can one have a connection to the grid as a backup pay negligible amounts every month since they don’t use it?
Lawyers argued that Title 24 required that residential buildings be interconnected with the grid [0] [1], but 2022 updates to the code seem to have clarified that standalone solar PV systems with storage are OK (though they should still be meet the same standards as grid-connected systems would) [2]
In any case the small number of people who can afford to do so and want to do so seem to be doing so [3]
And with so much sun, that is a very viable option. A roof covered in solar and some batteries and you'll never deal with this nonsense ever again.