Skip to content

Commit

Permalink
Don't throw for now
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Oct 13, 2024
1 parent db08d25 commit 1edd294
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/react-client/src/ReactFlightClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -1364,10 +1364,8 @@ function parseModelString(
// happened.
Object.defineProperty(parentObject, key, {
get: function () {
// We intentionally don't throw an error object here because it looks better
// without the stack in the console which isn't useful anyway.
// eslint-disable-next-line no-throw-literal
throw (
// TODO: We should ideally throw here to indicate a difference.
return (
'This object has been omitted by React in the console log ' +
'to avoid sending too much data from the server. Try logging smaller ' +
'or more specific objects.'
Expand Down

0 comments on commit 1edd294

Please sign in to comment.