I’ve found some time to play with DDP and Redux. Here I use Meteor as a backend only. So I am able to use all the cool stuff for which I am used to like PostCSS, CSSModules for React, old good testing solutions, HMR and all Webpack functionality, but also powerful realtime Meteor backend.
Could be a great way to integrate with Apollo Client as well, which is based on Redux. That way you can use one container and dev tools for your client data, reactive Meteor data, and GraphQL data!
yeah, this is just an example. It could be adjusted. I like the control. In most cases I don’t need pub/sub in apps so I can remove asteroid.ddp.on(…) listeners and it will work quite good with only methods triggered by Redux actions. You will just need to refetch the data by yourself if needed. I think pub/sub is really needed in apps like real time messaging etc.
Anyway, this is just my free time demo app (few hours work).
I would love to build something with this architecture and find out all weaknesses
Also, based only on this I think I’ll fall in love with Apollo Stack