omcljs / om

ClojureScript interface to Facebook's React
6.66k stars 363 forks source link

Union queries don't support recursion #855

Open Peeja opened 7 years ago

Peeja commented 7 years ago

I'm not sure if union queries are supposed to support recursion; if not, please close. The query spec gist implied that they should, but I know that spec is a WIP.

((om/parser {:read (constantly {:value :foo})})
 {}
 [{:abc {:a '...}}]
 nil)
;; => java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol

((om/parser {:read (constantly {:value :foo})})
 {}
 [{:abc {:a 5}}]
 nil)
;; => java.lang.IllegalArgumentException: Don't know how to create ISeq from: java.lang.Long