Fork me on GitHub

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.


@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


Thanks will definitely give it a read