Skip to content

Commit d6bf3e8

Browse files
authored
Update async-suspense.md
1 parent 36687bc commit d6bf3e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/guide/advanced/async-suspense.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ test('Async component', async () => {
140140
// ...
141141
})
142142
```
143+
Note: To access your `Async` components' underlying `vm` instance, use the return value of `wrapper.findComponent(Async)`. Since a new component is defined and mounted in this scenario, the wrapper returned by `mount(TestComponent)` contains its' own (empty) `vm`.
143144

144145
## Conclusion
145146

0 commit comments

Comments
 (0)