roundupapp / vue-plaid-link

Easy to use Vue component for Plaid Link
MIT License
31 stars 7 forks source link

Watch props rather than data for reactivity #10

Closed jcarrus closed 3 years ago

jcarrus commented 4 years ago

In trying to use your package, I've discovered that you are watching $data for reactivity rather than $props, which, since the component only has props and no data, is the reverse of what we would like.

This PR fixes this. I don't see any tests here, but this change properly reacts to prop changes in my own app. If you could test, merge, bump the version number, and then release in NPM, that would be great.

Thanks for sharing this package in the first place!