Fork me on GitHub
#om
<
2016-12-22
>
levitanong00:12:08

@ag For me personally, if I know a component will be used to display info about multiple things, I wouldn’t make a query. It may be used by something that has a query though, if it’s a component that represents an entity in your data.

levitanong00:12:53

@ag hmm. I wonder what the ui tree looks like now.

danielstockton06:12:44

@peeja It was the root component query, although it might not be at the root of the query going into the parser because of compassus.

danielstockton09:12:16

@anmonteiro After a lot of fiddling, i seem to have something that is working as i would like it (routing). Instead of creating my own set-route! function that also uses pushy/set-token!, I only use compassus/set-route! and in componentWillUpdate of my wrapper component I do pushy/set-token! if current route doesnt match the token.

danielstockton09:12:00

In my merge function, I don't call compassus/set-route! but instead return :compassus.core/route from the server which gets merged like any other key....this way I avoid needing the setTimeout hack to set-route after the token has been merged, they are merged at the same time.

danielstockton13:12:24

Actually, it's still not working with :compassus.core/route coming from the server, it doesn't trigger a re-read of the root query unless i call set-route!

danielstockton13:12:31

and still can't call set-route! in merge without setTimeout hacks

kenbier17:12:01

wrote a post about the time-travel feature in Om next and datomic, if anyone is interested: https://medium.com/adstage-engineering/contextual-debugging-with-om-next-and-untangled-8c168900dba5

kenbier17:12:01

wrote a post how we use the time-travel feature in Om next and untangled, if anyone is interested: https://medium.com/adstage-engineering/contextual-debugging-with-om-next-and-untangled-8c168900dba5