Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Check for removing state while adding a child (#3050)
Adding a child component to a parent which is in `removing` state, caused the lifecycle processing to go into a cyclic dependency when the parent is re-added. It happens because, while processing the lifecycle events, child's add event causes itself and the parent to get added to the blocked list. As a result of this, when the parent's add event is processed next, it gets skipped due to being in the blocked list. This PR makes sure that the child does not get enqueued when parent is about to be removed.
- Loading branch information