-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
$layout.svelte order not respected #1296
Comments
This sounds related to an issue with Svelte 3.38. could you update and check if it is fixed with 3.38.1? |
The version I tested it with is 3.38.1 https://github.com/killpowa/svelte-layout-issue-repro/blob/main/package-lock.json#L1066 |
I’m seeing the opposite here. As I navigate, the footer gets ahead of the What adds more confusion is that it remains reproducible even after removing |
Sorry for the confusion. I can confirm everything you said, the |
Updating to 3.38.1 actually fixed the duplicated content. Sorry for the confusion. Do you want me to close this and open a new issue specific to the $layout order not being respected? |
I can confirm that the mixed-up order is also present with Svelte 3.38.1. <main class="flex h-full flex-col">
<slot></slot>
<Footer/>
</main> |
Note that downgrading Svelte to 3.37.0 fixes this. @killpowa This should most definitely remain open, as, in spite of all the confusion, the original issue was not resolved. You may want to edit the additional context part to reflect the mix-up. |
This is most likely a problem with svelte, here is the corresponding issue: Svelte #6279 |
It must be related, but this one hydrates alright the first time and breaks later; over there, it’s the opposite. |
Closing as a duplicate of the Svelte issue |
Describe the bug
The tags order in the
$layout.svelte
is not respected.To Reproduce
This is easily reproducible. https://github.com/killpowa/svelte-layout-issue-repro
Just run
npm i
andnpm run dev
orbuild
. Then navigate to/test
by using thea
link on the screen, it will work. If you reload the page while being on the/test
route, the footer will not be in the correct place.Expected behavior
I expect the tags to appear in the correct place.
Severity
I think this is pretty severe.
Additional context
It's related to svelte:head in the specific route because if you remove it, it'll work, moreover it only happens on pages with that tag.
I also noticed a similar issue on one of my projects but I couldn't reproduce it outside of that it but it's still related to svelte:head because again, if I remove it, it works. The issue is that I have duplicated content on the pages that have the head tag on reload. When navigating by using the links on the page everything works.
The text was updated successfully, but these errors were encountered: