Closed Skymax00 closed 3 months ago
WHAT? I've never seen anything like this
I tired this on my phone (on safari) with the exact text you attached & couldn't reproduce it.
It's possible that this is re-rendering issue with svelte itself (I see you're using an experimental version). Does this happen anywhere in the app or just in that component?
I was able to reproduce this when using Svelte 5. Still not sure what's going on
Yeah Svelte 5. Sorry I didn't want to open a ticket on Svelte without checking here first.
I'm opening an issue in the svelte repo. Already made a reproduction. Apparently this only happens in the webkit rendered on mobile, only on svelte 5.
Paraglide has nothing to do with it, it always happens if you dynamically render a string with a link inside it.
It seems like on mobile the text is getting duplicated after the message ends, starting from when there was a domain. It happens only after you reload the site for the first time.
For example:
Hello, welcome to Github.com
results inHello, welcome to Github.comGithub.com
And for example:
Hello, welcome to Github.com, glad to see you again
results inHello, welcome to Github.com, glad to see you againGithub.com, glad to see you again
My setup
Paraglide config files were unmodified, deploying on Cloudflare Pages, here's my package.json:
My Story
I noticed my site was doing this: https://github.com/user-attachments/assets/e242d855-78cf-447e-ac0f-943da98a3fe9 when my message was this:
Then
So I shrunk it down to this: and I was still getting the last part duplicated:
Workaround
So finally I removed the .com and it didn't get duplicated anymore: so now yes I reverted to the first message without the .com and it works fine: https://github.com/user-attachments/assets/b14d5c06-595b-4c2a-95c3-3586e0e20d67