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

iliakut opened this issue Oct 10, 2019 · 1 comment


Copy link

@iliakut iliakut commented Oct 10, 2019



Reproduction link

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.


This comment has been minimized.

Copy link

@ktsn ktsn commented Oct 11, 2019

Set is not supported in current Vue.js reactivity.

@ktsn ktsn closed this Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.