Skip to content

fix: initialize render trees before async rendering - #17385

Closed
svelte-triage-bot[bot] wants to merge 2 commits into
mainfrom
triage/kit-17383-async-render-tree
Closed

svelte-triage-bot[bot] wants to merge 2 commits into
mainfrom
triage/kit-17383-async-render-tree

Conversation

@svelte-triage-bot

Copy link
Copy Markdown
Contributor
  • Reactive render-tree writes before initial rendering left empty data and undefined children in async batch history.
  • #16301 replaced the generated root with recursive snippets and #16547 made nodes reactive; construct complete bottom-up trees in both renderers and install the root before first render.
  • Retain reactive navigation updates and data-identity reuse; reject optional-chaining guards and pre-render flushes because they mask incomplete initialization rather than prevent it.
  • Preserve owning-depth boundaries and reset ordering from #16526; cover SSR/CSR startup, reload, navigation, invalidation and browser back.

Fixes #17383

@pkg-svelte-dev

pkg-svelte-dev Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from ae16266:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/ae162663d7777ed65e470887e3e630203437543b

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/17385

Note

This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed.

@changeset-bot

changeset-bot Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ae16266

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

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

@teemingc

Copy link
Copy Markdown
Member

closing because it's probably better that we fix this in svelte so that changing things before hydration doesn't record the changes as a batch

@teemingc teemingc closed this Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SvelteKit 3 hydration crashes with async content and a pending boundary

1 participant