With exit animation defined: State: mounted prevAnimationName: "fadeIn" User clicks "Close" currentAnimationName: "fadeOut" "fadeIn" !== "fadeOut" → TRUE send('ANIMATION_OUT') Without exit animation: State: mounted prevAnimationName: "fadeIn" User clicks "Close" currentAnimationName: "fadeIn" (unchanged) "fadeIn" === "fadeIn" → FALSE send('UNMOUNT') // skip animation