Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usage of provide: mutates mixins #12854

Closed
xanf opened this issue Oct 26, 2022 · 1 comment
Closed

usage of provide: mutates mixins #12854

xanf opened this issue Oct 26, 2022 · 1 comment

Comments

@xanf
Copy link

xanf commented Oct 26, 2022

Version

2.7.13

Reproduction link

stackblitz.com/edit/js-cz6vhx

Steps to reproduce

  1. Open stackblitz repo
  2. Observe output

What is expected?

"black hair and brown eyes" should be in output

What is actually happening?

"red hair and brown eyes" is in output


Vue.js mutates mixin itself during rendering

image

@qibing147147
Copy link

qibing147147 commented Oct 28, 2022

I read the source code and found that it directly modifies the reference of provide, and it also does so in the case of Vue 2.6

image

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants