The above is better than below!
useEffect(() => { ///문자열 '' -> false
setIsLoading(true);
(async () => {
const result = await getFlight(condition);
setFlightList(result);
setIsLoading(false);
})();
// async function updateFlightFilter(){
// const result = await getFlight(condition);
// setFlightList(result);
// setIsLoading(false);
// }
// updateFlightFilter();
}, [condition]);