Skip to content

Commit bfc3c3d

Browse files
kenfredchrisvfritz
authored andcommitted
Clarify that <keep-alive> cannot wrap v-for. (#967)
1 parent c7a2852 commit bfc3c3d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/v2/api/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2139,6 +2139,9 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
21392139
</transition>
21402140
```
21412141
2142+
Note, `<keep-alive>` is designed for the case where it has one direct child component that is being toggled. It does not work if you have `v-for` inside it. When there are multiple conditional children, as above, `<keep-alive>` requires that only one child is rendered at a time.
2143+
2144+
21422145
- **`include` and `exclude`**
21432146
21442147
> New in 2.1.0

0 commit comments

Comments
 (0)