Fork me on GitHub
#re-frame
<
2022-06-30
>
ilevd09:06:17

How can I write a subscription from another two subs and also get db ? Smth like that:

(rf/reg-sub
  :editor/dataset-schema

  :<- [:db] ;; How to get app state db? 
  :<- [:a] ;; another 2 subs :a and :b
  :<- [:b]    

  (fn [[db a b] _] 

   ))

p-himik09:06:32

reg-sub-raw would be the simplest approach.

👍 1