Skip to content

The computed property dependencies have not changed, but it is recalculated. #13011

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

Closed
willcom95 opened this issue Mar 9, 2025 · 0 comments
Closed

Comments

@willcom95
Copy link

willcom95 commented Mar 9, 2025

Vue version

v3.3.11

Link to minimal reproduction

https://play.vuejs.org/#__PROD__eNp9Ub1OwzAQfhXLS1q1SkRhCmklQB1gAASMWdLkGlIcO7LPoajKu3O2m9IBdTvf9+Pv7g78ruvi3gJPeYbQdqJAWOWSsaxqeip8mYQ6S84Y9DSlbjpkBtB2TBSyXkZoIsKatlMa2YFpKEpsepizUrWdRajYwLZatSyiPyPnUippyAPJlS1PgsnBfVwqKzFlV3P32KRskcthejtqKmU3wolG78lkypYrdpRKowTEQtWTqIymrqcpqJZsQQ4DNYLPSApucV8ICwT6QPFmNrvIypKwg+M+8EccV5OEms85GtJvmzreGSVpyz5dzl3mRoB+6bAh/5ynIbfDCiHU95Pvobbgp/eaTyi//unvzN71cv6qwYDuIecnDAtdAwZ4/f4Me6pPYKsqK4h9AXwDmt26jIF2b2VFsc94Pu2jv3gj6w+z3iNIMw7lgjrm4Pk5p7M/XBj9L+51fON1dCs+/AJgTOT/

Steps to reproduce

<script setup lang="ts"> import { reactive, computed } from 'vue' const state = reactive({ count: 1, }); const double = computed(() => { console.log('c') return 2; }) console.log(double.value) state.count++ console.log(double.value) </script>

What is expected?

c
2
2

What is actually happening?

c
2
c
2

System Info

Any additional comments?

No response

@jh-leong jh-leong closed this as completed Mar 9, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Mar 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants