Samuel
@samuel.fm
@scottspence.dev have you ever seen Svelte rendering both sides of an if/else block???
2 1 2If the conditions aren’t met then the elements don’t get added to the dom.
Guess there’s something causing the render in the logic?
When this happens I just add the conditions to the page to render them so I can see what’s going on
1 1Yeah moving the if/else fixed it, super weird one. Component just wasn’t being destroyed. I wasn’t able to make a minimal reproduction either
1 2I’m inclined to blame the hacky stuff I used to get nested svelte components in a web component to work :)
1 2There's a svelte:component directive, you use that?
https://svelte.dev/tutorial/svelte-component
https://svelte.dev/tutorial/svelte-component
svelte.dev