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

feat(kit): optimize editing on native set #269

Merged
merged 4 commits into from
Mar 11, 2024

Conversation

Azurewarth0920
Copy link
Collaborator

@Azurewarth0920 Azurewarth0920 commented Mar 8, 2024

  • Optimize editing on the native set.
    • Adding values to set.
    • Deleting object value in the set.
    • Disable modification on value in the set.
      • Value in set should be unable to be modified. (can be added or removed)
  • Add tests for devtools-kit/editor.

Copy link

netlify bot commented Mar 8, 2024

Deploy Preview for vue-devtools-docs canceled.

Name Link
🔨 Latest commit 30cd1c4
🔍 Latest deploy log https://app.netlify.com/sites/vue-devtools-docs/deploys/65eb1d74532b500008016477

@@ -79,7 +80,7 @@ export class StateEditor {
else if (toRaw(object) instanceof Map)
object.delete(field)
else if (toRaw(object) instanceof Set)
object.delete(value)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

object.delete(value) can not delete object-typed value in set.

@webfansplz webfansplz changed the title feat(kit): Optimize editing on native set feat(kit): optimize editing on native set Mar 11, 2024
@webfansplz webfansplz merged commit 3addaad into vuejs:main Mar 11, 2024
6 checks passed
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.

2 participants