henrylin03 / whats-the-weather

find out the weather anywhere around the world
http://henrylin.io/whats-the-weather/
MIT License
0 stars 0 forks source link

have API only be called once at ScreenController level, with the resulting object stored as an offline copy #26

Open henrylin03 opened 2 months ago

henrylin03 commented 2 months ago

refactor the components so that the weather data api is only called once at createScreenController level (in an async/await), and the required objects for the forecast and todayDetails components are just passed in (and those two don't have to be async anymore)