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

WIP: Add parent in create-instance #586

Merged
merged 18 commits into from
Jun 1, 2018
Merged

Conversation

eddyerburgh
Copy link
Member

@eddyerburgh eddyerburgh commented May 5, 2018

This will solve a few issues. It should make scopedSlots and slots easier to implement

Problems:

  • Must call $mount to create a nested component instance, which is incompatible with server-test-utils

Fixes #472

@eddyerburgh
Copy link
Member Author

@38elements One of the issues with this PR is that it's impossible to add this functionality—https://github.com/vuejs/vue-test-utils/blob/dev/test/specs/mounting-options/slots.spec.js#L107, where the slot is rendered using the context of the component that is mounted.

On reflection, I don't think we should have this behavior, since slots do not behave like this in Vue. What do you think?

@38elements
Copy link
Contributor

38elements commented May 30, 2018

Since the behavior is a rare use case and rarely used to write specifications,
I think it is unnecessary to support the behavior.

@eddyerburgh eddyerburgh mentioned this pull request May 31, 2018
@eddyerburgh eddyerburgh merged commit 0ab5a75 into vuejs:dev Jun 1, 2018
@eddyerburgh eddyerburgh deleted the add-parent branch June 1, 2018 19:02
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

Successfully merging this pull request may close these issues.

2 participants