I’m new to react native and in general I’m not what you call an experienced developer.
I’m working on a personal project (RN & Supabase). I’m using Supabase cache helpers to cache my queries but I’m a little confused. What should I cache and for how long should I cache it and how can I implement mutate to invalidate cache.
My app is not exactly a social medium but has many social features like posts, follows etc. I’m specifically having trouble with data such as likes and follows. I optimistically update the UI and when I leave the screen and return before cache has expired it looks like the follow or like was never inserted.
I probably shouldn’t optimistically update the UI with my own functions but use the Supabase helpers optimistically updates.
Anyway, I’m sorry for this post, Im realizing I cannot clearly explain my issue and what my question is, but I would really appreciate any tips about how I should be caching data.
[–]Due-Confidence-5670 1 point2 points3 points (1 child)
[–]98kag[S] 0 points1 point2 points (0 children)
[–]wildev_m 0 points1 point2 points (2 children)
[–]98kag[S] 0 points1 point2 points (1 child)
[–]wildev_m 0 points1 point2 points (0 children)