resolve-last let's you handle only the last promise that was resolved during a batch of actions