ember.js icon indicating copy to clipboard operation
ember.js copied to clipboard

`Infinite revalidation` bug error thrown in willDestroyElement calls if we set any parent properties inside it in Ember versions higher than 5.5.0

Open tamil-arasu849 opened this issue 8 months ago • 11 comments

We recently upgraded our ember application from version 3.28 to v5.9.0. After upgrade some cleanup operations using willDestroyElement calls in ember component throws infinite revalidation bug error, but when we use willDestroy method or registerDestructor function, this issue doesn't occur.

We found that this issue is present in ember versions starting from v5.6.0. But upto v5.5.0 this issue isn't there. I've tried to reproduce the bug in the repo https://github.com/tamil-arasu849/ember-lifecycle-hook-bug-repo.

The app will throw the below error when toggling the child component. But downgrading the version to v5.5.0 or lower fixes this issue image

This bug breaks many of our existing components

tamil-arasu849 avatar Jun 18 '24 11:06 tamil-arasu849