I'm new to this community, I'm glad I found this and so I can ask questions like this one (as per https://meta.stackexchange.com/questions/68384/whats-the-difference-between-stack-overflow-and-software-engineering-se-previo).
The problem is simple, how do I fetch the data in an app's home screen if I do offline-first type?
Sample project for context: A simple Notes App. Home screen: loads all the list of the Notes (with tile and cut-off content text).
I'm doing a simple notes-ish project, and I need to make it offline-first. I mean it does support offline using database. (SQLite). And when the app gets online, it will upload the saved offline data to the server.
TL;DR, question: in an offline-first app, do I GET/fetch the homescreen data from the SERVER or from the LOCAL DB? Both when the device is online and offline.