The main idea behind StallGuard is to enable homing with a mechanical stop.
It detects the blocking of the axis so that the motor can be stopped. In the same way, a step loss can be detected, but it should to be understood that there are restrictions concerning the motor velocities, where a stall can be detected (please see the FAQ
for the StallGuard drivers). StallGuard does not intended to replace encoders.