Fork me on GitHub
#re-frame
<
2018-04-13
>
mikethompson05:04:31

@brycecovert by "bad trade" I meant "bad tradeoff" . Collocating queries with views is nice, but the tradeoff is that the views become imperative.

caleb.macdonaldblack12:04:05

I have a data structure that looks like that that I’m going to use subs to pull the values out of. Would people recommend a sub for each value? Or a sub for each group (return a map), and then destructure the values in view code?

jhund15:04:33

@caleb.macdonaldblack I have similar data structures in my app and I’m using https://github.com/vimsical/subgraph to convert JSON data from server API into entities, and to pull them out of app-db. I like the fact that subgraph stores the entities fully normalized and builds the object graphs upon retrieval.

dfcarpenter18:04:01

Are there any examples of re-frame and graphql? Looking specifically for how to keep graphql client state/caching in re-frame store or at least if separate somehow subscribe to events

danielneal19:04:03

I know there's this: https://github.com/oliyh/re-graph but I haven't used it myself

danielneal19:04:43

We're using graphql on the backend but making requests using http-fx and storing the results in the reframe db

gklijs19:04:20

I used re-graph, it works great, including subscriptions.