Remove unnecessary `$onInit` callback
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.
Showing
Please register or sign in to comment