You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of triggering the weather API each time a user visit a plan, trigger the API call only if the delay is 1 hour at least and show last updated time also.
Lets say user visits a plan first time, the server should call the weather api and return the updated weather.
Now if you visit that page again and again, last updated should be checked and if it more than one hour from current time, the api should trigger again. until then one hour stale data should be shown.
The text was updated successfully, but these errors were encountered:
Instead of triggering the weather API each time a user visit a plan, trigger the API call only if the delay is 1 hour at least and show last updated time also.
Lets say user visits a plan first time, the server should call the weather api and return the updated weather.
Now if you visit that page again and again, last updated should be checked and if it more than one hour from current time, the api should trigger again. until then one hour stale data should be shown.
The text was updated successfully, but these errors were encountered: