emitStateChange

Emits the "state-change" signal. See onStateChange.