Skip to content

Conversation

Azurewarth0920
Copy link
Contributor

@Azurewarth0920 Azurewarth0920 commented May 2, 2023

fix: vuejs/pinia#2061

The DebuggerEventExtraInfo triggered by a computed ref doesn't have the field oldValue.

For consistency (consistent with reactive), added oldValue to debuggerEventExtraInfo.

Copy link
Contributor

@skirtles-code skirtles-code left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tried applying these changes locally to the latest main.

The conflicts proved much simpler to resolve than I was expecting and it appears these changes still work.

I was worried about the impact on production bundle size, so I checked that too. It seems to add 2 bytes, for the extra parameter on triggerRefValue. Everything else is removed.

@edison1105 edison1105 added ready to merge The PR is ready to be merged. 🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. easy to merge labels Jun 2, 2024
@yyx990803 yyx990803 merged commit 3b0a56a into vuejs:main Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. easy to merge ready to merge The PR is ready to be merged.
Projects
Development

Successfully merging this pull request may close these issues.

DevTools: Undefined value for oldValue in mutation event using Setup Stores
4 participants