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
Main logic behind fetching data from the database or from the network is that we observe if our database is empty in the first place, but according to your logic we are fetching data from the internet & immediately saving results to the database in NetworkBoundResource class. Also there's no logic behind how we fetch shouldFetch() = true always.
My question is based on this diagram which shows the decision tree for NetworkBoundResource class: https://developer.android.com/jetpack/guide
Main logic behind fetching data from the database or from the network is that we observe if our database is empty in the first place, but according to your logic we are fetching data from the internet & immediately saving results to the database in NetworkBoundResource class. Also there's no logic behind how we fetch shouldFetch() = true always.
@anitaa1990 Can you clarify here please?
The text was updated successfully, but these errors were encountered: