Skip to content

Conversation

@j3rem1e
Copy link
Contributor

@j3rem1e j3rem1e commented Jan 16, 2021

Issue: #13662

What I did

HOC doesn't destroy it child component. There is probably memory/resources leak related to this issue.

The fix is simple here: using svelte:component/ instead of mounting manually the nested component.

How to test

  • Is this testable with Jest or Chromatic screenshots? No
  • Does this need a new example in the kitchen sink apps? No
  • Does this need an update to the documentation? No

@shilman shilman added svelte bug patch:yes Bugfix & documentation PR that need to be picked to main branch labels Jan 22, 2021
@shilman shilman modified the milestones: 6.2 maintenance, 6.1.x Jan 22, 2021
@shilman shilman changed the title Svelte Doc: Duplicate Story Preview Svelte: Duplicate Story Preview Jan 22, 2021
@shilman shilman changed the title Svelte: Duplicate Story Preview Svelte: Fix duplicate story preview Jan 22, 2021
@shilman shilman merged commit f89c14b into storybookjs:next Jan 22, 2021
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label Jan 22, 2021
shilman added a commit that referenced this pull request Jan 22, 2021
This was referenced Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch svelte

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants