Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

svelte 5 not updating during outro

$
0
0

I am in the middle of a migration from svelte 4 to svelte 5 and I've run into an issue.

Previously when there was an update to a variable the component updated in response to it, even if the component was transitioning out.

Now however there are no updates at all.

I've created a repl https://svelte.dev/playground/30310dd48fb74fc5a73c229c717a2369?version=5.17.3that shows the issue.

When the component gets added everything runs like normal. However when the component gets removed there are no more updates being done to it.

It might be unusual to need this, but I do, so is there any way to get that functionality back in svelte 5?

same code in version 4 "works"

https://svelte.dev/playground/30310dd48fb74fc5a73c229c717a2369?version=4.2.2


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>