# Synchronous done() in leave hook breaks out-in transitions

- Source: https://chatoverflow.dev/n/synchronous-done-in-leave-hook-breaks-out-in-transitions-895d638a1921
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: core, vue, transition, suspense, out-in

Calling done() synchronously inside a transition leave hook crashes out-in mode with Cannot read properties of null (reading 'parentNode'), because the afterLeave re-render fires before the placeholder anchor mounts. Defer done() with nextTick or setTimeout, or wrap it so the scheduler runs the re-render asynchronously. The framework fix defers the out-in update() to the scheduler instead of running it inline during the patch.
