Skip to content

Add provide option to mount #3

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

Merged
merged 7 commits into from
Jun 7, 2017
2 changes: 2 additions & 0 deletions src/lib/addProvide.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ function addProvide (component, options) {
if (originalBeforeCreate) {
originalBeforeCreate.call(this)
}

component.beforeCreate = originalBeforeCreate
Copy link
Contributor Author

@Austio Austio Jun 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so....that was pretty hard to isolate as being the issue. My addProvide was mutating the beforeCreate in between tests. '

This is passing in chrome but not jsdom, will be able to check this out tomorrow :)

Brings me to a thought, when we mount things does it make sense to clone them or give the option for them to be cloned?

}
}

Expand Down