avoid directive updates when component is being destroyed