Skip to content

fix: layout load data not serialized on error page - #14395

Merged
dummdidumm merged 14 commits into
sveltejs:mainfrom
PatrickG:issue-14387
Sep 12, 2025
Merged

dummdidumm merged 14 commits into
sveltejs:mainfrom
PatrickG:issue-14387

Conversation

@PatrickG

@PatrickG PatrickG commented Sep 9, 2025 •

Copy link
Copy Markdown
Member

Fixes #14387

I made a mistake in #14298
When a load function errors, we still need the serialized data of the successfully run layout load functions.


Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

Tests

  • Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

  • If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

Edits

  • Please ensure that 'Allow edits from maintainers' is checked. PRs without this option may be closed.

@changeset-bot

changeset-bot Bot commented Sep 9, 2025 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fbca8f5

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

@PatrickG
PatrickG marked this pull request as ready for review September 10, 2025 00:26
@PatrickG PatrickG changed the title Issue 14387 fix: layout load data not serialized on error page Sep 10, 2025
@svelte-docs-bot

Copy link
Copy Markdown

@dummdidumm dummdidumm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@dummdidumm dummdidumm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great solution, thank you!

@dummdidumm
dummdidumm merged commit 4d9cc7f into sveltejs:main Sep 12, 2025
@github-actions github-actions Bot mentioned this pull request Sep 11, 2025
Copilot AI pushed a commit to Stadly/kit that referenced this pull request Mar 6, 2026
Fixes sveltejs#14298
When a load function errors, we still need the serialized data of the successfully run layout load functions.
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.

Layout data lost on +error.svelte

2 participants