You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When navigating from page A to another, if a Tiptap textfield is focused, SvelteKit completely breaks. Instead of swapping the page, the new page is simply concatenated with the current page. If this text field is not focused, the pages get concatenated only until the out transitions present in page A finish.
very serious, can't work around it but doesn't always happen
Additional Information
For context, in my project there are two pages: Home and Board.
When I navigate to Home from Board, if the text field is currently focused, not only the pages get concatenated as seen before, but afterwards, every Svelte transition of both pages also breaks/gets stuck and a hard refresh is the only way out. Not sure if related, but my Board page has to be set to CSR only because the SSR result is completely unusable and hydration breaks.
Upgrading to Svelte 5 fixes the main glitches, although there are still some issues and I haven't tested properly.
The text was updated successfully, but these errors were encountered:
rChaoz
changed the title
Multiple pages load on top of each other, afterNavigate called when navigating away
SvelteKit loads new page under existing one instead of replacing
Aug 4, 2024
rChaoz
changed the title
SvelteKit loads new page under existing one instead of replacing
SvelteKit loads new page under existing one, concatenating instead of replacing on navigation
Aug 4, 2024
rChaoz
changed the title
SvelteKit loads new page under existing one, concatenating instead of replacing on navigation
SvelteKit concatenates pages instead of swapping them on navigation
Aug 4, 2024
The transition/concatenation part seems to be very similar to #628. Although the bug that the first page never dissappears is totally different. Still, I wish there was a way to have global transitions that are not affected by navigation, or to at least have the transitions out play, only then the new page is added. Concatenating the pages doesn't page a lot of sense, especially with layouts.
Describe the bug
When navigating from page A to another, if a Tiptap textfield is focused, SvelteKit completely breaks. Instead of swapping the page, the new page is simply concatenated with the current page. If this text field is not focused, the pages get concatenated only until the
out
transitions present in page A finish.Reproduction
Video:
Screen.Recording.2024-08-04.202608.mp4
Related: #12547
Severity
very serious, can't work around it but doesn't always happen
Additional Information
For context, in my project there are two pages: Home and Board.
When I navigate to Home from Board, if the text field is currently focused, not only the pages get concatenated as seen before, but afterwards, every Svelte transition of both pages also breaks/gets stuck and a hard refresh is the only way out. Not sure if related, but my Board page has to be set to CSR only because the SSR result is completely unusable and hydration breaks.
Upgrading to Svelte 5 fixes the main glitches, although there are still some issues and I haven't tested properly.
The text was updated successfully, but these errors were encountered: