If the inverter is specially designed for grid tied mode then signal is obtained from the grid only for successful synchronization. If the grid fails inverter will not have any reference signal.
The same inverter can be used for islanding mode if the power generation is sufficiently high.