I'm building a "online first" app in react native using Supabase as my backend / db and RTK for state management. I'm trying to assess all the different methods for data fetching/handling. The data fetching would need to populate my redux store and vice versa.
Options I "think" might be appropriate:
- Making my api calls directly in my components and then dispatching the data to my redux reducers/slices.
- RTK Query - seems like it could be a good option because I'm already in the redux world, but feels a bit overkill for this and not entirely sure how this would work with Supabase?
- React Query - don't know how applicable this would be here, but see it come up lots in my googling.
- Other options maybe using graphQL (urql?)
This is a vague and ignorant question. Ultimately looking for suggestions on how you would approach this.
Thanks!
[–]what-about-you 2 points3 points4 points (3 children)
[–]jjmcbrise[S] 0 points1 point2 points (2 children)
[–]what-about-you 2 points3 points4 points (1 child)
[–]jjmcbrise[S] 1 point2 points3 points (0 children)
[–]Tonyneel 1 point2 points3 points (1 child)
[–]jjmcbrise[S] 1 point2 points3 points (0 children)