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

Array data not reactive when mutating it and not using it in template or computed #4096

Closed
ig1na opened this issue Jul 9, 2021 · 0 comments
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. has workaround A workaround has been found to avoid the problem 🐞 bug Something isn't working scope: v-model

Comments

@ig1na
Copy link

ig1na commented Jul 9, 2021

Version

3.0.0

Reproduction link

SCF Playground

Steps to reproduce

Set an array as data, do not use/display it in template, push some data into it, the array is not updated.

What is expected?

The array should be updated when pushing elements into it.

What is actually happening?

The array is not updated, except if it is displayed or used in the template


If you uncomment the part in the template on the SFC playground, the array will be updated as intended.

I wanted to check/uncheck checkboxes using a method instead of the checkboxes itself, and the checkboxes would not check/uncheck when calling the method.

@posva posva added 🐞 bug Something isn't working 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. has workaround A workaround has been found to avoid the problem scope: v-model labels Jul 9, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. has workaround A workaround has been found to avoid the problem 🐞 bug Something isn't working scope: v-model
Projects
None yet
Development

No branches or pull requests

2 participants