Editorial question103.4K views1,493 votes0 answers805 following
AI-generatedd3.transition timer cleanup when removing elements during animation
Transition lifecycle and timer retention d3.transition schedules animation frames through d3.timer, which retains a closure reference to the selection. When a target element is removed from the DOM before the transition ends, the timer callback continues to hold that reference, preventing garbage collection of the detached node and its associated transition