-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(stub): re-render of recursive component using wrong cached stub (#…
…2057) * Reproduction for #2039 * fix(stub): re-render of recursive component using wrong cached stub
- Loading branch information
1 parent
3139a1f
commit e47c672
Showing
5 changed files
with
62 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
<template> | ||
<div> | ||
<h2>{{ name }}</h2> | ||
<Hello /> | ||
<RecursiveComponent v-if="first" /> | ||
<template | ||
v-for="item in items" | ||
:key="item" | ||
> | ||
<RecursiveComponent | ||
:name="item" | ||
/> | ||
</template> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import Hello from './Hello.vue' | ||
defineProps<{ | ||
first?: boolean | ||
name: string | ||
items?: string[] | ||
}>() | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters