Conversation
🦋 Changeset detectedLatest commit: 38a1857 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
|
I feel a bit weird about adding a less-cryptic error for when I also realised as a result of this PR that |
|
Checking other cases requires computations. We cannot even do |
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
|
I vote for merging this. I just ran into this and it's really annoying to debug. Yes it's not going to catch all cases but I'd rather fail with a runtime error that gives me a hint at what goes wrong compared to a cryptic "undefined" runtime error. |
|
I tried to move |
|
I moved |
|
Btw, in prod the error isn't caught by boundary. I need help here. |
|
Added the error emitting for the non-crashing case. |
|
Added ensuring the thrown error is caught by a boundary - is this the right approach? |
|
Opened #17590 |
* chore: bump playwright * maybe this will help somehow? * err whatever * fix
* fix: handle renderer run rejections * add test * changeset * simplify * explanatory comment --------- Co-authored-by: Antonio Bennett <abennett@mabelslabels.com> Co-authored-by: Rich Harris <rich.harris@vercel.com>
* fix: only create async functions in SSR output when necessary * actually... * simplify generated code a bit more * simplify
…tent (#17587) * fix: merge consecutive text nodes during hydration for large text content Fixes #17582 Browsers automatically split text nodes exceeding 65536 characters into multiple consecutive text nodes during HTML parsing. This causes hydration mismatches when Svelte expects a single text node. The fix merges consecutive text nodes during hydration by: - Detecting when the current node is a text node - Finding all consecutive text node siblings - Merging their content into the first text node - Removing the extra text nodes This restores correct hydration behavior for large text content. * add test, fix * fix * fix * changeset --------- Co-authored-by: Miner <miner@example.com> Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This reverts commit 65f77ef.
Rich-Harris
left a comment
There was a problem hiding this comment.
eventually figured out all we needed was a length > keys.size check in the block effect
|
Oh, I missed that |
Closes #15339
It looks like duplicate keys cause crashing only in one place.
In some cases it still can successfully render the list but will crash soon anyway, so I don't see reasons to add other checks.
Before submitting the PR, please make sure you do the following
feat:,fix:,chore:, ordocs:.packages/svelte/src, add a changeset (npx changeset).Tests and linting
pnpm testand lint the project withpnpm lint