om

Please ask the channel first, not @dnolen directly!
fz 2017-03-20T00:04:32.397243Z

Is there an example showing an idiomatic way to use :keys returned in the :value of a mutation function? It certainly seems useful, but I haven't found any examples of it actually being used

fz 2017-03-20T00:05:41.401791Z

Related concern: it seems weird that the mutation function, which knows which keys will be stale, only returns hints, and it's up to the transact! call itself to know which keys to re-read. How should I be thinking about this?

fz 2017-03-20T00:06:13.403870Z

You haven't set a key? 😬

levitanong 2017-03-20T06:27:30.138885Z

It really is just a hint. It’s documentation for you and other people maintaining your code.

levitanong 2017-03-20T06:28:04.141499Z

AFAIK it doesn’t do anything.

2017-03-20T14:35:14.072826Z

(om/get-computed this) is nil and I can't work out why. Anyone have any theories?

2017-03-20T14:35:29.078600Z

(header-factory (om/computed header {:route route
                                               :menus menus
                                               :start start
                                               :end end}))

2017-03-20T14:56:04.553583Z

What do you do when you have a join like [{:header (om/get-query Header)}} and then header has it's own sub-components with their own sub-queries? In other words, you end up with a big nested join query where the keys have no real meaning other than to pass props down to nested components which have the 'real' query. Has anyone developed any patterns in their parser for dealing with that?

2017-03-20T14:57:00.575830Z

Recursive parser basically.

2017-03-20T15:25:58.272758Z

I can answer my first question, it's because props was nil.

baptiste-from-paris 2017-03-20T18:09:49.064818Z

hey guys, anyone is using om-css ? I love the idea and I’d like to have feedbacks

2017-03-20T19:39:19.886553Z

hello there, does anyone know of some up-to-date example of merging data saved in remote back into the om.next app state?

2017-03-20T19:41:24.925745Z

I'm having a hard time figuring what I should pass to the remote callback, especially the way to replace some temporary "record" + om-generated id with its backend version

2017-03-20T19:45:56.010849Z

forget about it, looks like I found my answer in om's tests

slipset 2017-03-20T20:36:21.996711Z

I’ve encountered a bug in om-0.9.0 (outlined in https://github.com/slipset/troublems) which is a minimal as I can make it.

slipset 2017-03-20T20:37:04.010190Z

As far as I can see, this was fixed in om-1.0.0-alpha18.

slipset 2017-03-20T20:37:56.026311Z

I’ve got a workaround for it, so it’s not blocking me at the moment, but I guess it leaves two questions:

slipset 2017-03-20T20:38:18.033233Z

1) how production-ready are the 1.0.0-alphas wrt classic om?

slipset 2017-03-20T20:38:37.039286Z

2) any chance of having a fix backported to 0.9.0?

anmonteiro 2017-03-20T21:01:05.477063Z

@slipset see this comment https://github.com/omcljs/om/issues/765#issuecomment-246989800

anmonteiro 2017-03-20T21:01:13.479240Z

TL;DR: yes to 1)

slipset 2017-03-20T21:06:17.574513Z

Thanks!