github infernojs/inferno v7.1.11
Inferno v7.1.11

latest releases: v8.2.3, v8.2.2, v8.2.1...
5 years ago

Inferno-core

  • Adds feature to silent lifecycle deprecation messages #1461 #1458

Example:

    class Foo extends Component {
        // just added to force the warnings
        static getDerivedStateFromProps() { }

         componentWillMount() { }

         componentWillReceiveProps() { }

         componentWillUpdate() { }

         render() {
             return <div>Foo</div>;
         }
    }

    Foo.prototype.componentWillMount.__suppressDeprecationWarning = true;
    Foo.prototype.componentWillReceiveProps.__suppressDeprecationWarning = true;
    Foo.prototype.componentWillUpdate.__suppressDeprecationWarning = true;

Don't miss a new inferno release

NewReleases is sending notifications on new releases.