Fork me on GitHub
#re-frame
<
2017-06-01
>
dimovich13:06:48

is this the right way to create subs for some inner data?

jvuillermet14:06:44

@dimovich do you have an issue with that ?

dimovich14:06:24

@jvuillermet trying to wrap my head around it 🙂

jvuillermet14:06:03

no problem, I’m free to answer any question if you have

dimovich15:06:36

(subscribe [:some-key some args])

dimovich15:06:50

can I send some args to the subscription function?

danielneal15:06:29

If I want to test a reg-fx effectful handler at the repl, is there anyway I can process my coeffects {:db .... :http ... <my-fx>:<my-fx-data>} directly without registering a new handler?

bradleesand16:06:33

Wouldn't the second one be this?

(reg-sub
  :item
  :<- [:items]
  (fn [items [_ id]]
    (id items)))

bradleesand18:06:18

Also I think the last one would be (fn [item] (:font item))

dimovich18:06:58

for the moment I have this

mikethompson21:06:55

@dimovich yes, that now looks right Personal preference but I'd write that filter as (filter :dom (vals items))

bradleesand21:06:14

I don't think that'd work cuz then you'd lose the k->v relationship