privatenumber/vue-vnode-syringe

Does not update prop values

cihad opened this issue ยท 5 comments

cihad commented

Although I changed the value of number where the <vnode-syring> is used, the expression in the component does not change.

For example:

https://codesandbox.io/s/not-affected-vnode-syring-4830t?file=/src/components/AppHeader.vue

Nice catch @cihad !

Thanks for providing a reproduction. I was able to reproduce it locally and add it as a test.

Fix coming soon.

๐ŸŽ‰ This issue has been resolved in version 3.0.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€

I forked and updated the codesandbox to use 3.0.0 and can confirm it works expectedly:
https://codesandbox.io/s/not-affected-vnode-syring-forked-d9hnn

cihad commented

Thanks. Eveything was perfect.

cihad commented

Wait a minute! Because if slot have 2 and more components, only first component is affected.

https://codesandbox.io/s/not-affected-vnode-syring-forked-m4the?file=/src/App.vue