mirror of https://github.com/status-im/reagent.git
Throw error instead of assert false
This commit is contained in:
parent
ccb94f5274
commit
93043e86c4
|
@ -144,7 +144,7 @@
|
||||||
(defn custom-wrapper [key f]
|
(defn custom-wrapper [key f]
|
||||||
(case key
|
(case key
|
||||||
:getDefaultProps
|
:getDefaultProps
|
||||||
(assert false "getDefaultProps not supported")
|
(throw (js/Error. "getDefaultProps not supported"))
|
||||||
|
|
||||||
:getInitialState
|
:getInitialState
|
||||||
(fn getInitialState []
|
(fn getInitialState []
|
||||||
|
|
Loading…
Reference in New Issue