Fork me on GitHub
#re-frame
<
2017-01-18
>
superstructor04:01:24

@brthrjon (clj->js (assoc-in (js->clj js/object) …)) might also work, probably not the most efficient if you care about the efficiency.

hjrnunes22:01:14

guys, does this make sense and/or is there a simpler way of doing it?

reg-sub
  :user-recipes
  :<- [:index/users]
  (fn [index [_ user] _]
    (filter #(= (name user) (:user %)) (vals index))))

hjrnunes22:01:58

I’m trying to get the second param in the subscribe query vector e.g. (subscribe [:index/users :some_user])