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

fix #3109: spy: computed shouldn't report update unless the value changed #3146

Merged
merged 3 commits into from
Oct 14, 2021

Conversation

urugator
Copy link
Collaborator

@urugator urugator commented Oct 14, 2021

fixes #3109

@changeset-bot
Copy link

changeset-bot bot commented Oct 14, 2021

🦋 Changeset detected

Latest commit: 8d12217

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
mobx Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@urugator urugator changed the title fix #3109: computed shouldn't report update unless the value changed fix #3109: spy: computed shouldn't report update unless the value changed Oct 14, 2021
if (event.type !== 'action') return;
expect(event.object).toBe(appState);
events.push(event);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Refactored so that spy is also disposed in case of test failure.

Copy link
Member

@mweststrate mweststrate left a comment

Choose a reason for hiding this comment

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

Looking great, thanks for picking up!

@mweststrate mweststrate merged commit 4ac6b45 into mobxjs:main Oct 14, 2021
@github-actions github-actions bot mentioned this pull request Oct 14, 2021
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 this pull request may close these issues.

Computed cached data appears in spy reports
2 participants