fix(loading): potential race condition with showing and hiding loading in same watch cycle