Shouldn't re-reads happen after the :action thunk has been called?
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.
@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.
makes sense thanks
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))
@ghopper https://github.com/omcljs/om/commit/c68e668a73cc534ecfdc71d6314abc3af911657e
@anmonteiro Thanks! 🙂
might have to wait a little while until the next release
That's alright; it's not a big deal.