Svelte: Transitions in await create duplicate DOM nodes

Created on 20 Aug 2019  路  6Comments  路  Source: sveltejs/svelte

Describe the bug
transitions in await blocks cause duplicate DOM nodes

To Reproduce
Click update a couple times in this REPL

Expected behavior
No duplicate nodes in the DOM

Most helpful comment

Why is this issue closed I am have the same issue with transitions not removing the previous DOM nodes?

All 6 comments

I'm having the same issue. Here's a slightly smaller reproduction of the issue: REPL

I updated the REPL after a discovery: the bug only appears with transition out and not with transition in.

Why is this issue closed I am have the same issue with transitions not removing the previous DOM nodes?

I also have this issue,
if you are replacing an object (causing transition out, and transition in) it seems to help to delay adding the next object until the transition out has finished (setTimeout)

This is closed because it's a duplicate of #1591.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ricardobeat picture ricardobeat  路  3Comments

Rich-Harris picture Rich-Harris  路  3Comments

Rich-Harris picture Rich-Harris  路  3Comments

AntoninBeaufort picture AntoninBeaufort  路  3Comments

davidcallanan picture davidcallanan  路  3Comments