We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.0.0-beta.3
https://github.com/vuejs/vue-next/blob/6fefeafe988b1e1f14224dfb11b87d4710042313/packages/reactivity/src/ref.ts#L58
import { ref } from 'vue' export default { template: '<button @click="inc">Clicked {{ count }} times.</button>', setup() { const count = ref(0) const inc = () => { count.value = 0 // not change } return { count, inc } } }
do nothing
triggered
The text was updated successfully, but these errors were encountered:
b0d4df9
perf(reactivity): ref should not trigger if value did not change
9342e6e
Note: shallowRef will always trigger on assignment because it does not account for deep mutations close vuejs#1012
No branches or pull requests
Version
3.0.0-beta.3
Reproduction link
https://github.com/vuejs/vue-next/blob/6fefeafe988b1e1f14224dfb11b87d4710042313/packages/reactivity/src/ref.ts#L58
Steps to reproduce
What is expected?
do nothing
What is actually happening?
triggered
The text was updated successfully, but these errors were encountered: