Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
07akioni opened this issue Nov 6, 2020 · 3 comments
Closed
Labels
has PR A pull request has already been submitted to solve the issue 🐞 bug Something isn't working

Comments

@07akioni
Copy link
Contributor

07akioni commented Nov 6, 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

@posva posva added the 🐞 bug Something isn't working label Nov 6, 2020
@posva posva added the has PR A pull request has already been submitted to solve the issue label Nov 18, 2020
@07akioni
Copy link
Contributor Author

07akioni commented Dec 9, 2020

@posva @yyx990803

The problem seems not to be solved?

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

@posva
Copy link
Member

posva commented Dec 9, 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

@07akioni
Copy link
Contributor Author

07akioni commented Dec 9, 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!

@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
has PR A pull request has already been submitted to solve the issue 🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants