remove yellowbox warnings for componentWillMount and WillUpdate

This commit is contained in:
yenda 2019-09-14 16:26:44 +02:00
parent e8e78bdec1
commit 747dec908e
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
1 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,11 @@
cljs.core.specs.alpha))
(if js/goog.DEBUG
(.ignoreWarnings (.-YellowBox js-dependencies/react-native) #js ["re-frame: overwriting"])
(.ignoreWarnings (.-YellowBox js-dependencies/react-native)
#js
["re-frame: overwriting"
"Warning: componentWillMount is deprecated and will be removed in the next major version. Use componentDidMount instead. As a temporary workaround, you can rename to UNSAFE_componentWillMount."
"Warning: componentWillUpdate is deprecated and will be removed in the next major version. Use componentDidUpdate instead. As a temporary workaround, you can rename to UNSAFE_componentWillUpdate."])
(aset js/console "disableYellowBox" true))
(defn init [app-root]