Fork me on GitHub
#om
<
2018-06-06
>
danielstockton07:06:14

Has anyone come across issues with process-roots on later cljs versions? I had a mutate that was working perfectly fine before, but now get's transformed into [{(user/login {:username "username", :password "password", :remember nil}) []}] by process-roots.

danielstockton07:06:02

The parser couldn't be simpler: (defmethod mutate 'user/login [_ _ _] {:api true}). Before process-roots: [(user/login {:username "username", :password "password", :remember nil})]

danielstockton08:06:42

Apologies, it turns out to be a problem in my code before process-roots is called.

Adam Bubeníček17:06:11

Is there any/recommended way to make om.next/parser evaluate with async :read multimethods? The use case would be a simple query parser on a node.js server, which would fetch each entity from database asynchronously. My limited CLJS/Om knowledge tells me this would not be possible – in which case, would something like Pathom be the way to go? Thanks for any ideas or tips