-
Notifications
You must be signed in to change notification settings - Fork 239
Content is reset at unexpected times #298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I found that the iframe was reloading. reset-output.movThe relevant code is here. learn.svelte.dev/content/tutorial/common/src/__client.js Lines 112 to 124 in 6736ff7
learn.svelte.dev/src/routes/tutorial/[slug]/Output.svelte Lines 54 to 62 in 6736ff7
This is caused by throttling of setInterval and setTimeout. https://developer.chrome.com/blog/timer-throttling-in-chrome-88/ The However, when the tab goes to the background, I have found the cause, but I don't know how to fix it. |
ah, interesting! good sleuthing. i wonder if we can emit |
Thanks for the advice, I'll try it. |
I'm sure there's a simpler repro than this, but I'm making a note of what I observed just now for further investigation later.
- lists
to- [links](https://example.com)
output
sectionThe content will have been reset (this happens for me in Firefox and Chrome).
Weirdly, you have to actually close the tab — if you leave it open and navigate back to the tutorial, the content won't have been reset. And if you drag the newly opened tab into a separate window and then close it, nothing will happen. It's... strange.
The text was updated successfully, but these errors were encountered: