Subscribe on changes!

View doesn't sync with value when update parent in created hook of child

avatar
Sep 10th 2020

Version

3.0.0-rc.10

Reproduction link

https://codesandbox.io/s/provider-value-vue3-i3qx6?file=/src/index.js

Steps to reproduce

change provider's value in injected component created hook. provider is not re-rendered.

Vue3 doesn't work as expected https://codesandbox.io/s/provider-value-vue3-i3qx6?file=/src/index.js image

Vue2 works as expected https://codesandbox.io/s/provider-value-vue2-62t5q image

What is expected?

Show changed-value\nchanged-value

What is actually happening?

Show provider-value\nchanged-value

avatar
Sep 10th 2020

This has already been fixed: https://github.com/vuejs/vue-next/commit/ac81dcf0cc7f5fc722a0c14d1cc92ece5cc0db07, please wait for the new release.

avatar
Sep 10th 2020

This has already been fixed: ac81dcf, please wait for the new release.

The commit seems already been released in rc.10. How does it be fixed?

node_modules/... image

avatar
Sep 10th 2020
avatar
Sep 10th 2020

Sorry, I provided the wrong link, it's here: 5f40539

thanks