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]
|
||||
(case key
|
||||
:getDefaultProps
|
||||
(assert false "getDefaultProps not supported")
|
||||
(throw (js/Error. "getDefaultProps not supported"))
|
||||
|
||||
:getInitialState
|
||||
(fn getInitialState []
|
||||
|
|
Loading…
Reference in New Issue