Subscribe on changes!

handlers depend on outer scope's value in nested slots are not updated

avatar
Nov 6th 2020

Version

3.0.2

Reproduction link

https://codesandbox.io/s/vue-handlers-bug-zzssi

Steps to reproduce

image

  1. remove at key(1) image

  2. create at key(2) image

What is expected?

the inserted item should be placed after key(2) image

What is actually happening?

it is placed after key(3) image

It can be assumed that index is not collected as the dependency of the button-group since when rendering it the value is not accessed.

What's more

it works in vue2 https://codesandbox.io/s/vue2-handlers-bug-xcp9j?file=/src/App.vue

avatar
Dec 9th 2020

@posva @yyx990803

The problem seems not to be solved?

The behavior still doesn't work as expected in the reproduction link.

avatar
Dec 9th 2020

Tried locally and this works correctly. @07akioni make sure to test locally next time! You can download a zip from codesandbox to make sure the correct versions are used, sometimes there are cache issues on CS

avatar
Dec 9th 2020

Tried locally and this works correctly. @07akioni make sure to test locally next time! You can download a zip from codesandbox to make sure the correct versions are used, sometimes there are cache issues on CS

You are right, I'm sorry for that. The problem is solved.

Next time I'll test it locally too. Thanks for your advice!