-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
A bug from svelte-spa-router and scroll #278
Comments
Hi @mowtwo I tried cloning your repo but I can't reproduce the issue. Going back to the previous page, I see the same content I saw at the beginning. What is the issue you're experiencing? |
Hi @ItalyPaleAle |
Can you share a screenshot/screencap of the issue? This is what it looks like on my laptop: Screen.Recording.2022-10-03.at.07.57.58.mov |
@ItalyPaleAle |
Hi @ItalyPaleAle ,This video is the process of reproducing bugs
svelte-spa-router-bug.mp4 |
Thanks for sharing that. Interestingly, I can reproduce the issue too but I am not sure this is a bug in the router. I was able to confirm the router is detecting the change in the route and notifying that. I am leaning towards this possibly being a bug in Svelte itself? |
Indeed, thank you! I just had the same glitch: on route change both old and new inner contents were loaded for a very short while, equivalent to the svelte transition time I had set on the component. After removing transition I no longer see the glitch. One can probably reproduce by adding this on a routed page. <div transition:fade={{ duration: 1000 }}>GLITCH</div> |
I agree with you, but I can't find the specific cause of the problem correctly at present. I hope you can help me find the problem. Thank you. |
When I scroll on a page and then switch routes, scroll on this new page, and then use the browser's native back button to return, I will find that the page content has not been properly destroyed
This is a minimal case
The text was updated successfully, but these errors were encountered: