• Robert Knight's avatar
    Remove unnecessary `$onInit` callback · 9e858939
    Robert Knight authored
    It turns out that `$onChanges` is invoked both when the component is
    initially created as well as subsequent updates. Therefore `$onInit` and
    `$onChanges` duplicated work and components were rendered twice during
    initial creation.
    9e858939
wrap-react-component.js 4.44 KB