Added callback function on setProps in extern