Skip to content

breaking: remove handleValidationError, pass validation errors to handleError - #16672

Merged
elliott-with-the-longest-name-on-github merged 1 commit into
elliott/update-handle-errorfrom
elliott/handle-validation-errors
Aug 10, 2026
Merged

elliott-with-the-longest-name-on-github merged 1 commit into
elliott/update-handle-errorfrom
elliott/handle-validation-errors

Conversation

@elliott-with-the-longest-name-on-github

Copy link
Copy Markdown
Contributor

Basically what the title says. Instead of two hooks, the new design of handleError allows us to centralize this.

@pkg-svelte-dev

ghost commented Aug 6, 2026 •

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 8b5cf83:

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

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

@changeset-bot

ghost commented Aug 6, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8b5cf83

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 Major

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

@svelte-docs-bot

ghost commented Aug 6, 2026

Copy link
Copy Markdown

@elliott-with-the-longest-name-on-github
elliott-with-the-longest-name-on-github force-pushed the elliott/handle-validation-errors branch 3 times, most recently from 6e99c64 to 4cc21e8 Compare August 7, 2026 17:37
Comment on lines -735 to -739
/**
* The event before `derive_remote_function_event` hid or stubbed properties.
* Hooks like `handleValidationError` receive this so `url` etc. stay accessible
*/
readonly original_event?: RequestEvent;

ghost Aug 8, 2026

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.

hell yeah

@Rich-Harris
Rich-Harris force-pushed the elliott/handle-validation-errors branch from 4b5dbb2 to 9e03360 Compare August 10, 2026 20:50
@elliott-with-the-longest-name-on-github elliott-with-the-longest-name-on-github added needs-ecosystem-ci This PR needs to have an ecosystem CI run started prior to its last commit before merging. and removed needs-ecosystem-ci This PR needs to have an ecosystem CI run started prior to its last commit before merging. labels Aug 10, 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.

2 participants