We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20c4036 commit 4c3e49cCopy full SHA for 4c3e49c
src/cljfx/dev.clj
@@ -241,8 +241,9 @@
241
(load "dev/validation")
242
243
(defn wrap-type->lifecycle [type->lifecycle]
244
- (fn [type]
245
- (wrap-lifecycle type type->lifecycle)))
+ (let [f (memoize wrap-lifecycle)]
+ (fn [type]
246
+ (f type type->lifecycle))))
247
248
(def type->lifecycle
249
(wrap-type->lifecycle (some-fn fx/keyword->lifecycle fx/fn->lifecycle)))
src/cljfx/dev/validation.clj
@@ -86,5 +86,4 @@
86
opts (assoc opts ::stack stack)]
87
(try
88
(lifecycle/delete lifecycle component opts)
89
- (catch Exception ex (re-throw-with-stack ex stack))))
90
- (lifecycle/delete lifecycle component opts)))))
+ (catch Exception ex (re-throw-with-stack ex stack))))))))
0 commit comments