Skip to content

[Fizz] Send errors down to client#24551

Merged
gnoff merged 7 commits intofacebook:mainfrom
gnoff:recoverableErrorServerToClient
May 30, 2022
Merged

[Fizz] Send errors down to client#24551
gnoff merged 7 commits intofacebook:mainfrom
gnoff:recoverableErrorServerToClient

Conversation

@gnoff
Copy link
Copy Markdown
Collaborator

@gnoff gnoff commented May 12, 2022

This is a continuation of @salazarm's PR #24202

Errors are now modeled as

  1. hash (prod and dev)
  2. message (dev only)
  3. component stack (dev onlhy)

They are sent in html if already known when flushing (e.g. flushing boundary in fallback)
They are also sent in a script in the client render instruction (e.g. a pending boundary rejects and needs to render on client)

Additionally all error content is escaped

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants