MichalTalaga17 / WeatherAPP

WeatherApp is a weather application built with SwiftUI
4 stars 0 forks source link

Redundant call to fetch data #4

Open thanhhungtakeshi opened 3 weeks ago

thanhhungtakeshi commented 3 weeks ago

Hi. This project is really helpful for beginner like me to learn SwiftUI. Thank you.

However, I notice that when the application start or when we switch between location in Setting, the are multiple redundant call to loadWeatherData function. Especially when we switch between 'Your location ' and favorite city.

Do you have any idea to fix this issue?

MichalTalaga17 commented 3 weeks ago

Hi, that's great to hear! I'm pretty busy right now, but I'll take a look at it and do a code review. Thanks for the feedback