From 3bffdbdbe7758d32786d5534e5a801fe16cdc147 Mon Sep 17 00:00:00 2001 From: skirtle <65301168+skirtles-code@users.noreply.github.com> Date: Thu, 22 Apr 2021 04:21:02 +0100 Subject: [PATCH] fix: mixins don't recursively merge data --- src/guide/mixins.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/mixins.md b/src/guide/mixins.md index 8d21cf11be..db27c38ce8 100644 --- a/src/guide/mixins.md +++ b/src/guide/mixins.md @@ -31,7 +31,7 @@ app.mount('#mixins-basic') // => "hello from mixin!" When a mixin and the component itself contain overlapping options, they will be "merged" using appropriate strategies. -For example, data objects undergo a recursive merge, with the component's data taking priority in cases of conflicts. +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. ```js const myMixin = {