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

Using custom setter for computed properties fires an extra trigger #89

Closed
existe-deja opened this issue Oct 16, 2020 · 1 comment · Fixed by #97
Closed

Using custom setter for computed properties fires an extra trigger #89

existe-deja opened this issue Oct 16, 2020 · 1 comment · Fixed by #97

Comments

@existe-deja
Copy link

Hi,

I'm binding a v-model to my vuex store using v-model and custom getter and setter. I noticed that if I use a custom setter with a t-element it fires two times. First when there is an update, then after the update.

reproduction link (without vuex)> https://codesandbox.io/s/sleepy-ritchie-r59ej?file=/src/CustomComputed.vue

There is no consequences with my data, but I want to avoid useless updates because it creates unwanted API calls.

@alfonsobries
Copy link
Owner

@LaCroute I see, yeah that its a problem I'll take a look next week

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

Successfully merging a pull request may close this issue.

2 participants