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

chore: tweak Map/Set for better inspect output #12013

Merged
merged 6 commits into from
Jun 13, 2024
Merged

chore: tweak Map/Set for better inspect output #12013

merged 6 commits into from
Jun 13, 2024

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Jun 12, 2024

This isn't really a bug fix, but just a nice change to make the console debugged output of the Map and Set show as having no entries when used with $inspect. The trick is to first clear the object before we do the reactive work.

Copy link

changeset-bot bot commented Jun 12, 2024

🦋 Changeset detected

Latest commit: b0da992

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

This PR includes changesets to release 1 package
Name Type
svelte 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

@dummdidumm
Copy link
Member

Should have a code comment saying why it's first so we don't regress. Other than that, nice find 👍

@trueadm trueadm merged commit 4cdc371 into main Jun 13, 2024
8 checks passed
@trueadm trueadm deleted the tweak-map-set branch June 13, 2024 12:05
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.

3 participants