-
Notifications
You must be signed in to change notification settings - Fork 275
setProps #51
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
setProps #51
Conversation
| props[k] = v | ||
| } | ||
|
|
||
| return app.$nextTick() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
src/mount.ts
Outdated
| const app = vm.mount(el) | ||
|
|
||
| return createWrapper(app, events) | ||
| return { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not
const wrapper = createWrapper(app, events)
wrapper.setProps = setProps
return wrapperThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it works
I was too far down the rabbit hole to see the top 😆
Covers all test cases from beta, and a number of bugs, (eg
setPropsandwatchwas buggy; now it is not).