-
-
Couldn't load subscription status.
- Fork 2.1k
Preserve server issues when doing preflight-only validation #14759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…r preflight-only issues
|
|
is it on purpose that this is targeting main and not the other branch? |
|
nope — good catch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice - didn't look closely enough at first which caused my concern-post in the related PR about client-side overriding server-side validation. I now see that it keeps all server-side issues intact for issues that are NOT overridden by client-side issues, which is indeed better.
packages/kit/src/runtime/client/remote-functions/form.svelte.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Simon H <[email protected]>
* feat: allow to run preflight validation only That way you can e.g. run preflight on each keystroke and full validation only on blur * clientOnly -> preflightOnly * Preserve server issues when doing preflight-only validation (#14759) * preserve server issues on preflight validation, unless there are newer preflight-only issues * sort correctly * no longer necessary * lint * Update packages/kit/src/runtime/client/remote-functions/form.svelte.js Co-authored-by: Simon H <[email protected]> --------- Co-authored-by: Simon H <[email protected]> --------- Co-authored-by: Rich Harris <[email protected]> Co-authored-by: Rich Harris <[email protected]>
#14744 (comment)