clj-commons / citrus

State management library for Rum
Eclipse Public License 1.0
274 stars 21 forks source link

Difference in subscriptions with reducers between CLJ and CLJS #39

Closed DjebbZ closed 5 years ago

DjebbZ commented 5 years ago

Hi,

I think I spotted a bug:

So for a subscription like this:

(defn products-count [reconciler]
  (citrus/subscription reconciler [:products :list] count))

In CLJ it will call (-> data count (get-in [:products :list])), whereas in CLJS it will do (-> data (get-in [:products :list]) count).

Am I right ?

roman01la commented 5 years ago

fixed in #40