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

Provide options not merged from mixins #6008

Closed
jasonsanjose opened this issue Jun 30, 2017 · 0 comments
Closed

Provide options not merged from mixins #6008

jasonsanjose opened this issue Jun 30, 2017 · 0 comments
Assignees

Comments

@jasonsanjose
Copy link

Version

2.3.4

Reproduction link

https://jsfiddle.net/jason_sanjose/00h2moa2/

Steps to reproduce

  • Define a component A that uses 2 mixins that each define their own provide properties, e.g. foo and bar.
  • Define a component B inside A that uses inject to add foo and bar properties

What is expected?

Both foo and bar should be available in component B.

What is actually happening?

The provide defined by the last mixin is the only one available.

Looks like the standard options merging only accounts for inject but not provide https://github.com/vuejs/vue/blob/dev/src/core/util/options.js#L185.


Update docs if this behavior is expected.

@znck znck self-assigned this Jul 4, 2017
znck added a commit to znck/vue that referenced this issue Jul 4, 2017
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