Ensured components are still mounted before setting their state following an async request