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

performance improvement: avoid effect multiple runs #1089

Merged
merged 3 commits into from
Mar 14, 2024

Conversation

anatolzak
Copy link
Contributor

issue #1086 describes the effect running twice since we update both the open and activeTrigger stores. The issue was already fixed in PR #1087, but we can avoid running the effect twice by not updating the active trigger store if it's the same as the previous. Just a slight performance improvement.

Copy link

changeset-bot bot commented Mar 14, 2024

🦋 Changeset detected

Latest commit: 38b78da

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

This PR includes changesets to release 1 package
Name Type
@melt-ui/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

Copy link
Member

@huntabyte huntabyte left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

github-actions bot commented Mar 14, 2024

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
melt-ui ✅ Ready (View Log) Visit Preview 38b78da

@huntabyte huntabyte merged commit fc29cba into melt-ui:develop Mar 14, 2024
5 checks passed
@github-actions github-actions bot mentioned this pull request Mar 14, 2024
@anatolzak anatolzak deleted the fix/avoid-effect-multiple-runs branch March 14, 2024 17:58
lolcabanon pushed a commit to lolcabanon/melt-ui that referenced this pull request Apr 20, 2024
Co-authored-by: Hunter Johnston <johnstonhuntera@gmail.com>
Co-authored-by: Hunter Johnston <64506580+huntabyte@users.noreply.github.com>
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