Fork me on GitHub
#om
<
2016-10-02
>
levitanong10:10:04

@dzannotti: have you looked into om/computed and om/get-computed?

dzannotti16:10:27

@levitanong doesn't seem to be exactly what i was looking for sadly, i was looking for computed values in query rather than apply them to props

alex-glv16:10:41

Anyone has experience with compassus + bidi + goog.History for implementing routing in om.next? I have a route with :id param, but struggling to pass it to my component to constrain the query.

petterik16:10:08

Now that om.next is written in .cljc we can run fullstack - client and server - tests in a single jvm. Powerfull stuff! In testing this out, I ran in to 1 problem where I'm accessing om.next.cache in my client code, so I had to port it to .cljc. Patch here: https://github.com/petterik/om/commit/8d63f7e6690252a72e42767fff431f1967c692a3 It'll be very interesting to see how far this sort of testing can go and how many bugs it can find.

levitanong17:10:35

@dzannotti: it seems what you're currently doing is correct then. :)

anmonteiro19:10:50

@levitanong you can use om.next/react-type

levitanong19:10:52

@anmonteiro Indeed, I feel silly now, after having made that PR 😛

levitanong19:10:12

Will add to documentation

anmonteiro19:10:55

make sure to mention that limitation for the server-side part, please

levitanong19:10:17

Oh wait, it’s already documented

levitanong19:10:02

will add the limitation instead

levitanong19:10:10

@anmonteiro that bit seems to fit more as an entry in the FAQ, which could reference the react-type entry in the documentation. What do you think?

anmonteiro19:10:26

@levitanong nothing against that

dzannotti19:10:46

is there an om next parser for the server in other languages?

dzannotti19:10:09

(google doesn't seem to help on this one)

anmonteiro19:10:13

@dzannotti nothing I’m aware

dzannotti19:10:05

for log/google purposes - the closest thing i found to an om.next parser in python after some digging is https://github.com/dvcrn/om-react-native-demo/blob/master/server/api/views.py

anmonteiro21:10:52

@alex-glv I still have a few things to get to for the next Compassus release, but I’m happy to make a pre-release tomorrow if you want

alex-glv21:10:09

If it’s not too much trouble, I’d appreciate!

anmonteiro21:10:59

I’ll ping you tomorrow when it’s done

alex-glv21:10:16

Awesome, thanks.

anmonteiro21:10:32

@alex-glv actually got around to doing it now. bump your deps to [compassus “0.3.0-SNAPSHOT"]

peeja21:10:35

@dzannotti I'm running into this case too. We already have domain helper functions for calculating these values; my approach is going to be to annotate those functions with queries, so a component which uses those functions can query for the raw data they'll need. We'll see if it's viable. (I think querying for calculated values using keys that aren't in the app state, as you're describing, is also a reasonable approach.)