There can be a danger to first responders on the DC side of the inverter, which may still have a high DC potential from the panels (string voltage can be 100vdc and up). Fortunately, code in a lot of areas (in general areas that have adopted a 2014 or newer NEC) requires a "DC Rapid Shutdown" feature on new solar installations. In these systems there is a small module on each panel that detects the loss of a signal from the inverter and disconnects the panel from the string, eliminating the shock hazard from the panel cabling. This way the panels just get hot instead of producing power. That's only going to be on newer installations but at least NEC requires a big "DC Rapid Shutdown" sticker on the inverter if so. These systems can also be useful to avoid "cold start" overvoltage problems.
It probably comes down to how they detect a grid outage.
But I can think of some scenarios where the solar inverters can see each other on the grid, and assume the grid is still up
It is possible, but extremely unlikely, that a distributed generation island gets lucky that there is enough generation to meet the load on the island and it can respond fast enough to keep frequency and voltage within range when the island forms.
(I'm a software engineer with no formal EE education, so "it's complicated, go read a book first" is also an acceptable answer)
I imagine an inverter with one solar panel behind it can’t muster enough oomph to back feed a sizable chunk of distribution network - if it tried it would not be able to maintain nominal voltage. Say the load of the neighborhood is 500 kW, that’s 1200 A at 240V, which the inverter can’t supply unless there is 500 Kw of solar panels behind it. The 500kw load at 240V looks like a 0.2 ohm resistor to the inverter - essentially a short. Actually looking at the impedance of the network is one technique protection relays use to detect line faults.
Maybe the inverter can’t sustain the nominal voltage when feeding essentially a short so the voltage will be less then nominal and then it knows it is operating outside or normal conditions.
I can’t imagine a scenario in which the inverter could maintain nominal voltage at its terminals with a 0.2 ohm load looking out, if there is 240V across 0.2 ohm then there is 1200A through the 0.2 ohm.
In summary despite putting out voltage it will not be able to maintain the desired terminal voltage.
For frequency I understand most grid tie inverters somehow follow the grid frequency as opposed to generating their own.