That’s a pretty standard issue with grid tied solar systems. You save a lot of money by not having batteries, but when the neighborhood goes down you go down with it.
Plus you don’t want to be pumping electricity into a downed power system, you could actually end up hurting a line man who is working on the system.
However, and both of these issues can be resolved by adding in a generator and a whole house cut off system.
In a power outage scenario, all you would have to do is throw the crossover switch and crank the generator. The generator would produce enough energy to reactivate the solar system.
It’s called shucking and it happens a lot especially in the home server home lab community.