Skip to content

Commit 2b0801e

Browse files
fix: mixins don't recursively merge data (vuejs#1003)
1 parent f0b4e44 commit 2b0801e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/mixins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ app.mount('#mixins-basic') // => "hello from mixin!"
3131

3232
When a mixin and the component itself contain overlapping options, they will be "merged" using appropriate strategies.
3333

34-
For example, data objects undergo a recursive merge, with the component's data taking priority in cases of conflicts.
34+
For example, each mixin can have its own `data` function. Each of them will be called, with the returned objects being merged. Properties from the component's own data will take priority in cases of conflicts.
3535

3636
```js
3737
const myMixin = {

0 commit comments

Comments
 (0)