Update the serverFunctions.onError reference - #1610
Open
adipascu wants to merge 4 commits into
Open
Conversation
|
|
✅ Deploy Preview for solid-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
2 tasks
adipascu
force-pushed
the
docs/server-fn-on-error-contract
branch
from
July 29, 2026 15:33
6162e98 to
77efc9b
Compare
serverFunctions.onError contractserverFunctions.onError reference
adipascu
force-pushed
the
docs/server-fn-on-error-contract
branch
from
July 29, 2026 15:34
77efc9b to
251018e
Compare
serverFunctions.onError referenceserverFunctions.onError reference
adipascu
force-pushed
the
docs/server-fn-on-error-contract
branch
from
July 29, 2026 15:39
251018e to
c7635c5
Compare
serverFunctions.onError referenceserverFunctions.onError reference
adipascu
force-pushed
the
docs/server-fn-on-error-contract
branch
10 times, most recently
from
July 29, 2026 15:54
34879bd to
7bd631e
Compare
adipascu
marked this pull request as ready for review
July 29, 2026 15:54
Author
|
Happy to trim if this reads too verbose for a reference entry. |
adipascu
force-pushed
the
docs/server-fn-on-error-contract
branch
2 times, most recently
from
July 29, 2026 16:01
1141eae to
151e04d
Compare
adipascu
force-pushed
the
docs/server-fn-on-error-contract
branch
from
July 29, 2026 16:02
151e04d to
2c023a3
Compare
LadyBluenotes
approved these changes
Jul 29, 2026
LadyBluenotes
enabled auto-merge (squash)
July 29, 2026 18:55
auto-merge was automatically disabled
July 30, 2026 00:51
Head branch was pushed to by a user without write access
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description(required)
Updates the
serverFunctions.onErrorsection added in #1609 with the rest of the contract. I wrote the option itself (solidjs/solid-start#2262), so these are the parts worth spelling out for anyone writing a handler:redirectreaches the export as aResponse, so a handler that replaces everything it sees turns redirects into errorsasyncThe example now guards
thrown instanceof Responsefirst, so it keeps working for anyone who adapts it, and reports through a monitoring SDK rather thanconsole.error, which shows what the server-only bundling is for.Checked against a running app: the same server function called over the network, during rendering, and in process from an API route, with only the network call reaching the handler.
Paired with solidjs/solid-start#2266, the same additions to the JSDoc for this option.
Related issues & labels