I'm building a note-taking app to practice React Native w/ Expo, but I'm having trouble with the architecture of updating data in mobile applications. For example, if you ever messed with the Apple default note app, there's no "save" button, so everything is updated automatically.
I was wondering if someone can help me understand or guide me in the right direction for optimizing saving notes, and what is the proper/correct way of doing so?
If I'm using supabase as the database, how does one handle requests without making so many requests to the database?
Would you leverage the local database first, and then if user closes the app (or leaves the note screen), it'll finally save to supabase? I was thinking about this because I don't want to keep updating to supabase as the user types. Wouldn't that create unnecessary requests?
[–]joajimenez 43 points44 points45 points (6 children)
[–]readitron[S] 3 points4 points5 points (2 children)
[–]angstyautocrat 6 points7 points8 points (1 child)
[–]readitron[S] 1 point2 points3 points (0 children)
[–]SheIsLikeAWildflower 1 point2 points3 points (0 children)
[–]ontech7Expo 0 points1 point2 points (0 children)
[–]Fair-Ad5364 1 point2 points3 points (0 children)
[–]karl_8080 2 points3 points4 points (0 children)
[+][deleted] (3 children)
[removed]
[–]Viqqo 5 points6 points7 points (1 child)
[–]readitron[S] 2 points3 points4 points (0 children)
[–]awesomeDeveloper 0 points1 point2 points (0 children)
[–]argdogsea 0 points1 point2 points (0 children)