This is my home screen, here in useEffect I am calling functions. All functions behind the scene return some response from some API's, so my home screen renders 6 times. Please suggest to me how to avoid this behavior.
useEffect(() => {
dispatch(getCities());
dispatch(getHotels());
dispatch(getRooms());
dispatch(getNews());
dispatch(getDeals());
dispatch(getDestinations());
}, []);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…