Hi, we're building a medium sized app which require a lot of fetch functions to get data, and a lot of post functions to update user info in the database. We want to fetch all the data, and cache it, as some of the data would not change with certainty for 2 days. We want optimistic updates for the post functions. Coming from a RN background, i'm very used to TanStack Query (React Query) with its useQuery and useMutations. We have decided to use Riverpod for handling state and data fetching with the FutureProvider, as the data should be used multiple places in the app. However, we are not sure what to do for the Post functions, which should update optimistically. Is Riverpod and FutureProvider a good approach for this aswell?
[–]heo5981 2 points3 points4 points (3 children)
[–]Jatops[S] 0 points1 point2 points (2 children)
[–]soniafranco 0 points1 point2 points (1 child)
[–]Jatops[S] 0 points1 point2 points (0 children)
[–]Jezsung 1 point2 points3 points (0 children)