File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
gen-src/day8/re_frame_10x/inlined_deps/reagent/v1v2v0/reagent/impl Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 4646
4747(defn ^boolean reagent-class? [c]
4848 (and (fn? c)
49- (some? (some-> c (.-prototype ) (.-reagentRender )))))
49+ (some? (some-> ^js c (.-prototype ) (.-reagentRender )))))
5050
5151(defn ^boolean react-class? [c]
5252 (and (fn? c)
53- (some? (some-> c (.-prototype ) (.-render )))))
53+ (some? (some-> ^js c (.-prototype ) (.-render )))))
5454
5555(defn ^boolean reagent-component? [^clj c]
5656 (some? (.-reagentRender c)))
Original file line number Diff line number Diff line change 11(ns day8.re-frame-10x.navigation.epochs.events
22 (:require
3- [re-frame.core]
4- [re-frame.db]
3+ [re-frame.core :as userland.re-frame ]
4+ [re-frame.db :as userland.re-frame.db ]
55 [re-frame.trace]
66 [day8.re-frame-10x.inlined-deps.re-frame.v1v3v0.re-frame.core :as rf]
77 [day8.re-frame-10x.fx.debounce :as debounce]
153153 (metam/matched-event ))
154154 app-db-before (metam/app-db-before event-trace)
155155 event (get-in event-trace [:tags :event ])]
156- (reset! re-frame.db/app-db app-db-before)
156+ (reset! userland. re-frame.db/app-db app-db-before)
157157 ; ; Wait for quiescence
158158 (assoc epochs :replay event))))
159159
162162 [(rf/path [:epochs ])]
163163 (fn [db _]
164164 (if-some [event-to-replay (:replay db)]
165- (do (re-frame.core /dispatch event-to-replay)
165+ (do (userland. re-frame/dispatch event-to-replay)
166166 (dissoc db :replay ))
167167 db)))
168168
187187 event (metam/matched-event (:match-info match))]
188188 ; ; Don't mess up the users app if there is a problem getting app-db-after.
189189 (when-some [new-db (metam/app-db-after event)]
190- (reset! re-frame.db/app-db new-db))))
190+ (reset! userland. re-frame.db/app-db new-db))))
191191 db))
192192
193193(rf/reg-event-db
Original file line number Diff line number Diff line change 55 [clojure.data]
66 [devtools.prefs]
77 [devtools.formatters.core]
8+ [re-frame.core :as userland.re-frame]
89 [day8.re-frame-10x.inlined-deps.garden.v1v3v10.garden.units :refer [px]]
910 [day8.re-frame-10x.inlined-deps.spade.git-sha-5197e54.core :refer [defclass ]]
1011 [day8.re-frame-10x.inlined-deps.re-frame.v1v3v0.re-frame.core :as rf]
245246 {:icon [material/check-circle-outline]
246247 :title " Set the value of app-db to the editor value."
247248 :label " Set!"
248- :on-click #(re-frame.core /dispatch
249+ :on-click #(userland. re-frame/dispatch
249250 [::app-db.events/edit path edit-str])}]]]
250251 [:textarea
251252 {:default-value edit-str
You can’t perform that action at this time.
0 commit comments