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

[3.5.0+] Previous values from computed are always undefined #11812

Closed
ferferga opened this issue Sep 4, 2024 · 0 comments · Fixed by #11813
Closed

[3.5.0+] Previous values from computed are always undefined #11812

ferferga opened this issue Sep 4, 2024 · 0 comments · Fixed by #11813
Labels
❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. regression scope: reactivity

Comments

@ferferga
Copy link
Contributor

ferferga commented Sep 4, 2024

Vue version

3.5.0+

Link to minimal reproduction

https://play.vuejs.org/#__PROD__eNp9Uk2P0zAQ/SsjX9pqqwS0cFnSLh/aw3IAtOwxEgrupHGb2JY9zhZF+e+MkzaNEHBL5r15fu/ZnfhgbdIGFHciI2xsXRBucw2Q2e0nEzShg64Def7s+yy1V7yxgXAHL4oqsA5bZYKf0SfC/T0sgt5hqTTuFnOVn4HIaHgvayWPm1ycN29ucrF91NJh4TFLRxZvZOnMJP966ZQl8EghCqrGGkfQga+KujYvT1iu2czZRQ+lMw0sOO7iXVyXRnuasm1mW8tXqz/gKctmElwuL5lXsNlCFwOlKTxXygO7pF/giZ02qAl4dAisVqFD8OZqShYayBXyCFQhOCyjSjzZ1JjUZr9cTMW2Rc3O11PTKw4BvELB6YvNZCAx0Ec0S8eCuBqxFuRZt1T75OCN5gsfDMfKG6tqdF8tKT43F3djlIgNfXweZuQCri9zWaE8/mV+8Kc4y8U3hx5di7mYMCrcHmmEH75/wRN/T2BjdqFm9n/AJ+ROQvQ40j7yi2LbM97g9nF4A0rvn/3DiVD7S6hoNDL7gZ8LfgbxUv8V/Wr3Nnkz7HGp3OKPFl3U5AJvk7fJa9H/BmpBHyM=

Steps to reproduce

  1. Open the console in the playground
  2. Click on increase. See how in console the previous value is always undefined
  3. Switch to any Vue 3.4.x version (and reload the playground just in case)
  4. Repeat step 2. See how previous value is correct.

What is expected?

previous points to the old value

What is actually happening?

previous no longer works

System Info

No response

Any additional comments?

No response

@edison1105 edison1105 added scope: reactivity regression ❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. labels Sep 5, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. regression scope: reactivity
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants