GeezerVison is showing github.com — [Fizz] Align recoverable error serialization in dev mode by sebmarkbage · Pull Request #28340 · react/react
Conversation
Same as #28327 but for Fizz.
One thing that's weird about this recoverable error is that we don't send the regular stack for it, just the component stack it seems. This is missing some potential information and if we move toward integrated since stacks it would be one thing.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
import type {TreeContext} from './ReactFizzTreeContext';
|
|
|
import type {ThenableState} from './ReactFizzThenable';
|
|
|
import {enableRenderableContext} from 'shared/ReactFeatureFlags';
|
|
|
import {describeObjectForErrorMessage} from 'shared/ReactSerializationErrors';
|
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.
Fizz is typically not a "serializer", except in this one case where we serialize errors it is.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Comparing: a7144f2...685f199
Critical size changes
Includes critical production bundles, as well as any change greater than 2%:
Significant size changes
Includes any change greater than 0.2%:
Expand to show
Generated by 🚫 dangerJS against 685f199
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
These don't really make sense to add to the message string since these prefixes
are typically printed when the errors are printed anyway and are part of .stack.
So prefixing just leads to duplicate prefixes.
github-actions Bot
pushed a commit
that referenced
this pull request
Feb 15, 2024
Same as #28327 but for Fizz.
One thing that's weird about this recoverable error is that we don't
send the regular stack for it, just the component stack it seems. This
is missing some potential information and if we move toward integrated
since stacks it would be one thing.
DiffTrain build for [2e470a7](2e470a7)
This was referenced Feb 20, 2024
EdisonVan
pushed a commit
to EdisonVan/react
that referenced
this pull request
Apr 15, 2024
Same as react#28327 but for Fizz.
One thing that's weird about this recoverable error is that we don't
send the regular stack for it, just the component stack it seems. This
is missing some potential information and if we move toward integrated
since stacks it would be one thing.
bigfootjon
pushed a commit
that referenced
this pull request
Apr 18, 2024
Same as #28327 but for Fizz.
One thing that's weird about this recoverable error is that we don't
send the regular stack for it, just the component stack it seems. This
is missing some potential information and if we move toward integrated
since stacks it would be one thing.
DiffTrain build for commit 2e470a7.
hanzo-dev
pushed a commit
to hanzoai/react
that referenced
this pull request
Sep 9, 2026
Same as react#28327 but for Fizz.
One thing that's weird about this recoverable error is that we don't
send the regular stack for it, just the component stack it seems. This
is missing some potential information and if we move toward integrated
since stacks it would be one thing.
Reviewers
gaearon
gaearon approved these changes
gnoff
Awaiting requested review from gnoff
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|