⬆️ Upgrade to beicon2 (part1)

This commit is contained in:
Andrey Antukh 2023-12-21 20:02:49 +01:00 committed by Alonso Torres
parent ecee15af5b
commit 96f5a33f5f
151 changed files with 482 additions and 433 deletions

View file

@ -8,7 +8,7 @@
(:require
[app.main.ui.hooks :as hooks]
[app.util.http :as http]
[beicon.core :as rx]
[beicon.v2.core :as rx]
[rumext.v2 :as mf]))
(def context (mf/create-context false))
@ -37,7 +37,7 @@
(rx/filter some?)
(url-mapping)
(rx/reduce conj {})
(rx/subs (fn [data]
(rx/subs! (fn [data]
(when-not (= data (mf/ref-val uri-data))
(mf/set-ref-val! uri-data data)
(reset! state inc)))))]