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
Problem:
Currently, the --quote option relies on an external API call to https://api.quotable.io/random to fetch random quotes. However, this functionality does not work when the user is offline, resulting in an incomplete user experience.
Solution:
Implement a check for the user's online status before making the API call. If the user is online, fetch quotes from the external API. If the user is offline, provide fallback functionality that serves quotes from local data or a predefined offline source, ensuring uninterrupted access to random quotes regardless of network connectivity.
The text was updated successfully, but these errors were encountered:
Problem:
Currently, the
--quote
option relies on an external API call to https://api.quotable.io/random to fetch random quotes. However, this functionality does not work when the user is offline, resulting in an incomplete user experience.Solution:
Implement a check for the user's online status before making the API call. If the user is online, fetch quotes from the external API. If the user is offline, provide fallback functionality that serves quotes from local data or a predefined offline source, ensuring uninterrupted access to random quotes regardless of network connectivity.
The text was updated successfully, but these errors were encountered: