graphql

orestis 2019-05-10T06:58:34.095200Z

I built my own trivial useGraphql hook that returns an array of (data error loading), re-firing if the query or the variables change. No extra stuff though.

2019-05-10T07:34:15.097Z

@stefan.age consider re-frame if you want to abstract data over the data flowing through your application. then with re-graph you always write the responses back into your re-frame db, and your view components subscribe to the re-frame db. it decouples your rendering from your data lifecycle and makes all your code much more testable. i wrote about this approach here https://juxt.pro/blog/posts/cljs-apps.html

stefan 2019-05-10T15:53:59.097700Z

Thanks will definitely give it a read