The technology is well understood. It is really a regulation problem, which is why it is coming state-by-state. States are just now even looking at the idea. For a complete list of which states allow it, check out this link https://plugsolarhub.com/states-and-regulations
The comment by a_paddy is dead and I can't respond to it directly, but all electrical generation and inverters have disconnect switches that monitor for that exact scenario and disconnect in less than 1 cycle (1/60 second). This has been a solved problem for a very long time, yet seems to come up in every forum that discusses home solar.
[dead]
There are some safety concerns at least for relatively powerful panels - e. g. if a circuit breaker is 30A you can draw up to 30A from the grid in absence of panels. If you connect a panel which can provide another 30A then a device in theory will be able to draw 60A from the socket not triggering circuit breaker which will overload the socket circuit.