Flash of content if a fly
in-transition started immediately after out-transition
#13882
Labels
fly
in-transition started immediately after out-transition
#13882
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Most of the time if the element is shown immediately after it's out-transition ended it momentarily flashes in its final state in DOM before the in-transition kicks in.
Doesn't matter if the element is shown in
onoutroend
, or in $effect teardown in useSpamming
await tick()
everywhere doesn't help at all, but wrapping the code that starts the in-transition insetTimeout(..., 0)
does. Makes me think about task queue starvation by microtask queue, but I don't understand JS at the level that deep.Bug reproduced on Brave Browser: 129.1.70.126, desktop Safari 16.6.1 and mobile Safari. The same code on Svelte v4 works correctly.
Reproduction
REPL link @5.2.3
Same code works fine on 4.2.19
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: