Skip to content

Conversation

jh-leong
Copy link
Member

@jh-leong jh-leong commented Jun 18, 2024

close #11168

The optimized mode's fast path skips the unmount process for dynamic component receiving an exting vnode with component children (component not in dynamicChildren), causing the onUnmounted hook to be missed, a simplified reproduction in playground.

Change:

  • Updated unmount logic to include a check for PatchFlags.BAIL to ensure components are unmounted correctly.

@LinusBorg LinusBorg added the 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. label Jun 20, 2024
@yyx990803 yyx990803 merged commit 220fe24 into vuejs:main Jun 22, 2024
@jh-leong jh-leong deleted the fix/unmount branch October 30, 2024 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

onUnmounted doesn't run if slot content is wrapped in a div (within this tab structure)
4 participants