I’m using Apollo with PostGres. But I was a javascript newbie when I started this app, so learning Apollo at the same time, was extra-hard. I probably could have cut my dev time in half by using Mongo and Meteor methods.
We’re using react-query, we created nice hooks useQueryHook and useMutationHook that are plugged with Meteor. It uses all the benefits of this perfect library that is react-query!
This is excellent, @filipenevola
I’ll give it a try! I have been looking for a solution for this for the past week, and I think this new package will be really helpful
Plus one to the react-query shout. I’m in the process of converting our application to it - created a couple of wrapper functions to incorporate Meteor methods and typescript:
I use react-router-dom and react-meteor-data and set props if using pub/sub or state with Method calls it’s working alright just try to follow KISS (Keep it simple stupid)
@filipenevola Sounds really cool! I’m using similar patterns for my project, but less generic atm.
Do you plan to include Grounded Collection for offline first support? Also, sometimes collections don’t “deserve” to be observed, since data changes rarely; so for these cases I fetch data via a method call and store it locally on the client (updating cached data in certain intervals); would be really cool to have all this in a nice hook
Ground db is awesome and one of the best features out there for having a pre-cache. Also look at enabling caching on react so that it’s leveraging the browser cache as this is instant and very nice on mobile when going back to previous pages etc - it just comes in instant, and then the subs will catch up and that’s really what users expect of a web app now