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

The Set object accessor size #1627

Closed
iliakut opened this issue Oct 10, 2019 · 1 comment
Closed

The Set object accessor size #1627

iliakut opened this issue Oct 10, 2019 · 1 comment

Comments

@iliakut
Copy link

iliakut commented Oct 10, 2019

Version

3.1.1

Reproduction link

https://codepen.io/iliakut/pen/PooPPLm

Steps to reproduce

let Vuex see changes in Set object accessor size

What is expected?

getter return size of Set object

What is actually happening?

getter can't return size of Set object


I have a getter in vuex that returns state.setObject.size, but getter does't return actual size;
example: getter: state => state.setObject.size
I use setObject.add() and setObject.delete() methods to change setObject.
Are there any ways to read setObject.size? Exclude component computed cache: false.

@ktsn
Copy link
Member

ktsn commented Oct 11, 2019

Set is not supported in current Vue.js reactivity.
#961
vuejs/vue#1319
vuejs/vue#2410

@ktsn ktsn closed this as completed Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants