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

Bugfix: Removed manual subscription in Modal component causing memory leak #2336

Merged
merged 4 commits into from
Dec 20, 2023
Merged

Bugfix: Removed manual subscription in Modal component causing memory leak #2336

merged 4 commits into from
Dec 20, 2023

Conversation

Hugos68
Copy link
Contributor

@Hugos68 Hugos68 commented Dec 20, 2023

Linked Issue

Closes #2335

Description

Removed manual subscription in favor of svelte's auto subscription syntax ($), this removes the need to manually unsubscribe (which wasn't done in the first place).

Changsets

Instructions: Changesets automate our changelog. If you modify files in /packages, run pnpm changeset in the root of the monorepo, follow the prompts, then commit the markdown file. Changes that add features should be minor while chores and bugfixes should be patch. Please prefix the changeset message with feat:, bugfix: or chore:.

Checklist

Please read and apply all contribution requirements.

  • This PR targets the dev branch (NEVER master)
  • Documentation reflects all relevant changes
  • Branch is prefixed with: docs/, feat/, chore/, bugfix/
  • Ensure Svelte and Typescript linting is current - run pnpm ci:check
  • Ensure Prettier linting is current - run pnpm format
  • All test cases are passing - run pnpm test
  • Includes a changeset (if relevant; see above)

Sorry, something went wrong.

…ead, wrapped the logic in a function to prevent nested reactivity (triggering the modal multiple times when buttonTextDefault's change
Copy link

changeset-bot bot commented Dec 20, 2023

🦋 Changeset detected

Latest commit: d8c3493

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

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

vercel bot commented Dec 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
skeleton-docs ✅ Ready (Inspect) Visit Preview Dec 20, 2023 9:39pm

@endigo9740 endigo9740 merged commit 04dfa82 into skeletonlabs:dev Dec 20, 2023
@Hugos68 Hugos68 changed the title Bugfix; Removed manual subscription in Modal component causing memory leak Bugfix: Removed manual subscription in Modal component causing memory leak Dec 22, 2023
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.

Modal component has a memory leak
4 participants