When building a todo list that works both offline and online, what’s the best solution? Should we:
Rely entirely on Firebase and implement caching to ensure functionality in both online and offline modes?
Use
AppState
to store tasks offline and sync them with Firebase at regular intervals?Use SQLite for local storage and periodically sync it with Firebase, updating the online version based on certain triggers or intervals?
Personally, I tend to lean towards using Firebase and relying on it entirely. I’m not exactly sure why, but this is often the approach I take. I’d love to hear different perspectives and understand the various strategies others might use, along with the reasons behind their choices.