Fork me on GitHub
#graphql
<
2019-05-10
>
orestis06:05:34

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.

oliy07:05:15

@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

stefan15:05:59

Thanks will definitely give it a read