Skip to content
Discussion options

You must be logged in to vote

Thanks — the reproduction is precise and the conclusion is right. Answering the three questions and saying where this goes.

1. Should production SSR ship message / cause / own-properties by default? No. There are two wires for the same failure today and they disagree:

  • Server-function HTTP dispatch sanitizes a plain thrown value outside the dev build ("Internal Server Error", markSafeError to opt out) — #3116.
  • SSR does not. The server <Errored> boundary serializes the error it caught, verbatim, so the client boundary can rethrow it during hydration and the fallback hydrates against the same err(). Only .stack is stripped; message, cause, and own enumerable props travel. A "use server" fu…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by everton-dgn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants