Fork me on GitHub
#reagent
<
2018-04-18
>
lilactown15:04:44

are there any examples of a library or framework that allows you to bundle a data query (a la Om.Next, Apollo, Relay, etc.) with a reagent component?

javi16:04:04

re-frame, rum queries...

lilactown17:04:02

I don’t know how re-frame addresses this specifically, or what rum queries are

lilactown17:04:16

do you have any examples?

javi21:04:21

@lilactown apologies for the vague response... mobile.. So 1st check out re-frame https://github.com/Day8/re-frame the queries that you refer to are implemented as reactive subscriptions https://github.com/Day8/re-frame#code-for-domino-4 to the data model. It is easy to pick up, scales great... and has lots of addons... plus the docs are great IMO

lilactown21:04:38

I see. I understand where my confusion came from: one of the biggest requirements I have is server-side rendering - which stuff like reagent subscriptions cannot handle

javi22:04:54

i have to say I have no experience of isomorphic reagent/re-frame.. but i have tried rum https://github.com/tonsky/rum and it is isomorphic by default.... It has a nice (for me) way of co-locating queries and views that make it very easy to pick up...