You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to upgrade my project to Svelte 5. My Svelte 4 code uses the anchor option to specify where a component is placed in the container element. I noticed the option is no longer available in the exported mount() in Svelte 5, even though it still exists in the internal _mount(). Is this intended? What's the recommended way to migrate?
Describe the proposed solution
As a workaround, currently I have to create an empty <div>, prepend to the anchor node, mount the components to the <div>, then anchor.replaceWith(...anchor.children).
Importance
would make my life easier
The text was updated successfully, but these errors were encountered:
Describe the problem
I was trying to upgrade my project to Svelte 5. My Svelte 4 code uses the
anchor
option to specify where a component is placed in the container element. I noticed the option is no longer available in the exportedmount()
in Svelte 5, even though it still exists in the internal_mount()
. Is this intended? What's the recommended way to migrate?Describe the proposed solution
As a workaround, currently I have to create an empty
<div>
, prepend to the anchor node, mount the components to the<div>
, thenanchor.replaceWith(...anchor.children)
.Importance
would make my life easier
The text was updated successfully, but these errors were encountered: