Fork me on GitHub
#om
<
2017-06-11
>
matthavener02:06:03

bbktsk: I don't see anything wrong with that. I'm not sure you need to call the parser recursively though. You probably wouldn't have a read function for person/id person/firstname, etc, unless you're fetching all these values from very disparate sources

pedroteixeira21:06:10

if there is an invalid ident (i.e. non existent) in app state, when using recursive query I get Error: ... is not ISeqable from the db->tree - for some reason I thought it would just be ignored (as when querying other inexistent keys). Example:

(let [st {:tree [{:id 1 :children [ [:by-id 2]]}]}]
  (om/db->tree
    '[{:tree [:id {:children ...}]}] st st)) 

devth21:06:23

is there a way to set component state without forcing a re-render?