Prayer-Companion / PrayerCompanionMobile

Prayer-Companion's Android Project
22 stars 1 forks source link

Fix to fetch prayer times on each app start #9

Closed RaedGhazal closed 1 year ago

RaedGhazal commented 1 year ago

Current behavior

Currently everytime the app opens we fetch the prayer times from Backend which is fine, but it takes time and shows delay before showing the prayer times

Description

We usually have the Prayer Times cached in the local DB so we should be able to show them instantly and then make the API request to get an updated values instead of waiting for the call

probably using Flow here might make sense, by reading from the DB and making the call to fill the DB