Maybe a good reason (in parts of the world where this is practical) to have some solar + battery storage. Doesn't even need to fully replace grid power, just enough to run the barebones when the grid goes out.
Houses have water tank that work as buffer for when the water stop, couldn't residential batteries work the same way?, it could detect drops in voltage and stop charging, so even if the grid is unstable in a black out, the residential isn't going to light up immediately, or only the houses without batteries