om

Please ask the channel first, not @dnolen directly!
2017-06-29T13:42:58.656431Z

Shouldn't re-reads happen after the :action thunk has been called?

2017-06-29T14:35:21.027798Z

I had a situation where I was calling a :ui/modal re-read after a transact! that updates it in a child but the parent which depended on that key way still receiving nil. I found an alternative workaround however.

denik 2017-06-29T17:16:20.215216Z

@danielstockton they happen when the component re-renders, in the next requestAnimationFrame, which is why you can end up with stale props between transactions. Your app db is atomic, you can dupe your query and get the data there.

2017-06-29T17:18:55.274397Z

makes sense thanks

2017-06-29T18:52:46.549930Z

Couldn't the create-element [method](https://github.com/omcljs/om/blob/master/src/main/om/dom.cljs#L75) use apply, so if there aren't any children, it won't be added. There are some Sementic-Ui-React component that complain if there are children, which forces me to call js/React.createElement manually. Proposed:

([tag opts & children]
   (apply js/React.createElement tag opts children))

2017-06-29T19:03:09.797770Z

@anmonteiro Thanks! 🙂

anmonteiro 2017-06-29T19:03:40.810308Z

might have to wait a little while until the next release

2017-06-29T19:04:10.822186Z

That's alright; it's not a big deal.