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

Svelte key block {#key var} stops working after focusing on another browser tab

$
0
0

I noticed that using the key block in svelte to toggle a re-render of a component inside the block will stop working if I visit another tab for some minutes. I know that the browser stops processes of the webpage that is not being used right now, but is the key block also affected by it?

PS: the var passed to the key block is a boolean

I expected the key block working flawlessly, but changes on var did not affect anything to the key block. I managed to get the key block working again by clicking on another browser tab and back to my project. After that, changes to the var got registered by the key block


Viewing all articles
Browse latest Browse all 1541

Trending Articles