mirror of https://github.com/status-im/reagent.git
Cleanup
This commit is contained in:
parent
1555fd9c3e
commit
ba18691674
|
@ -72,7 +72,7 @@
|
|||
:componentWillReceiveProps
|
||||
(fn [props]
|
||||
(this-as C
|
||||
(when f (f C (aget props cljs-argv)))))
|
||||
(f C (aget props cljs-argv))))
|
||||
|
||||
:shouldComponentUpdate
|
||||
(fn [nextprops nextstate]
|
||||
|
@ -102,7 +102,8 @@
|
|||
(fn []
|
||||
(this-as C
|
||||
(batch/dispose C)
|
||||
(when f (f C))))
|
||||
(when-not (nil? f)
|
||||
(f C))))
|
||||
|
||||
nil))
|
||||
|
||||
|
|
Loading…
Reference in New Issue