vue-property-decorator icon indicating copy to clipboard operation
vue-property-decorator copied to clipboard

@ProvideReactive didn't provide a new reactive-value in sibling component instances

Open laomao800 opened this issue 5 years ago • 4 comments

Version

8.4.1

Reproduction

https://laomao800.github.io/vue-property-decorator-issue-reproduction/

https://github.com/laomao800/vue-property-decorator-issue-reproduction

Steps to reproduce

On the left side 'Error Sample' block, two <Parent /> components will effects each other. Seems like @ProvideReactive just provide a single instance.

Is that intentional?

What is expected?

Is there any workaround to keep @ProvideReactve works like 'Expect Sample` block ?

laomao800 avatar Apr 10 '20 10:04 laomao800

Update: I found that v8.2.x didn't get this issue

laomao800 avatar Apr 13 '20 08:04 laomao800

me too

bigGoodMan avatar Apr 13 '20 12:04 bigGoodMan

Update: I found that v8.2.x didn't get this issue woops!

zhangr16 avatar May 15 '20 09:05 zhangr16

Thanks for this tip, I had very strange issues with 8.4.1 + 8.4.2 and related to routing: It all worked when loading the page. @InjectReactive + @ProvideReactive... When I switched to a next step (new route), and came back again, it was completely broken. Very strange is, that I even have the key-fullPath option, to rerender the components...

<router-view :key="$route.fullPath"

Not 1:1 related to this issue, but wanted to mention this. It all seems to work with V 8.2.2

Cyclodex avatar Jun 10 '20 08:06 Cyclodex