GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove invokeGuardedCallback and replay trick by sebmarkbage · Pull Request #28515 · react/react

Conversation

@sebmarkbage

@sebmarkbage sebmarkbage commented Mar 7, 2024

Copy link
Copy Markdown
Contributor

We broke the ability to "break on uncaught exceptions" by adding a try/catch higher up in the scheduling. We're giving up on fixing that so we can remove the replay trick inside an event handler.

The issue with that approach is that we end up double logging a lot of errors in DEV since they get reported to the page.

It's also a lot of complexity around this feature.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sebmarkbage
sebmarkbage requested review from gnoff and rickhanlonii March 7, 2024 06:10
@facebook-github-bot facebook-github-bot added CLA Signed React Core Team Opened by a member of the React Core Team labels Mar 7, 2024
@react-sizebot

react-sizebot commented Mar 7, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Comparing: 7d6f1e3...8ed9d7c

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 177.10 kB 176.71 kB = 55.20 kB 54.89 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 177.64 kB 177.25 kB = 55.53 kB 55.25 kB
facebook-www/ReactDOM-prod.classic.js = 593.92 kB 592.84 kB = 104.85 kB 104.15 kB
facebook-www/ReactDOM-prod.modern.js = 577.18 kB 576.10 kB = 101.91 kB 101.21 kB
oss-experimental/react-dom/umd/react-dom-test-utils.production.min.js = 12.52 kB 12.03 kB = 4.87 kB 4.70 kB
oss-stable-semver/react-dom/umd/react-dom-test-utils.production.min.js = 12.52 kB 12.03 kB = 4.87 kB 4.70 kB
oss-stable/react-dom/umd/react-dom-test-utils.production.min.js = 12.52 kB 12.03 kB = 4.87 kB 4.70 kB
oss-experimental/react-dom/cjs/react-dom-test-utils.production.min.js = 12.43 kB 11.94 kB = 4.82 kB 4.66 kB
oss-stable-semver/react-dom/cjs/react-dom-test-utils.production.min.js = 12.43 kB 11.94 kB = 4.82 kB 4.66 kB
oss-stable/react-dom/cjs/react-dom-test-utils.production.min.js = 12.43 kB 11.94 kB = 4.82 kB 4.66 kB
facebook-www/ReactTestUtils-dev.classic.js = 54.14 kB 51.14 kB = 13.80 kB 13.07 kB
facebook-www/ReactTestUtils-dev.modern.js = 54.14 kB 51.14 kB = 13.80 kB 13.07 kB
oss-experimental/react-dom/cjs/react-dom-test-utils.production.js = 45.18 kB 42.64 kB = 12.81 kB 12.11 kB
oss-stable-semver/react-dom/cjs/react-dom-test-utils.production.js = 45.18 kB 42.64 kB = 12.81 kB 12.11 kB
oss-stable/react-dom/cjs/react-dom-test-utils.production.js = 45.18 kB 42.64 kB = 12.81 kB 12.11 kB
oss-experimental/react-dom/umd/react-dom-test-utils.development.js = 58.17 kB 47.41 kB = 16.21 kB 13.10 kB
oss-stable-semver/react-dom/umd/react-dom-test-utils.development.js = 58.17 kB 47.41 kB = 16.21 kB 13.10 kB
oss-stable/react-dom/umd/react-dom-test-utils.development.js = 58.17 kB 47.41 kB = 16.21 kB 13.10 kB
oss-experimental/react-dom/cjs/react-dom-test-utils.development.js = 55.01 kB 44.64 kB = 15.92 kB 12.87 kB
oss-stable-semver/react-dom/cjs/react-dom-test-utils.development.js = 55.01 kB 44.64 kB = 15.92 kB 12.87 kB
oss-stable/react-dom/cjs/react-dom-test-utils.development.js = 55.01 kB 44.64 kB = 15.92 kB 12.87 kB
test_utils/ReactAllWarnings.js Deleted 66.60 kB 0.00 kB Deleted 16.28 kB 0.00 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react-dom/umd/react-dom.profiling.min.js = 186.40 kB 186.01 kB = 58.15 kB 57.72 kB
oss-stable/react-dom/umd/react-dom.profiling.min.js = 185.85 kB 185.46 kB = 57.85 kB 57.46 kB
oss-stable-semver/react-dom/umd/react-dom.profiling.min.js = 185.77 kB 185.39 kB = 57.82 kB 57.44 kB
oss-experimental/react-dom/cjs/react-dom.profiling.min.js = 187.11 kB 186.72 kB = 57.89 kB 57.57 kB
oss-stable/react-dom/cjs/react-dom.profiling.min.js = 186.57 kB 186.18 kB = 57.55 kB 57.24 kB
oss-stable-semver/react-dom/cjs/react-dom.profiling.min.js = 186.49 kB 186.11 kB = 57.52 kB 57.21 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.production.min.js = 183.69 kB 183.30 kB = 57.79 kB 57.52 kB
oss-experimental/react-dom/umd/react-dom.production.min.js = 177.37 kB 176.98 kB = 55.77 kB 55.43 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 177.64 kB 177.25 kB = 55.53 kB 55.25 kB
oss-stable/react-dom/umd/react-dom.production.min.js = 176.82 kB 176.43 kB = 55.47 kB 55.10 kB
oss-stable-semver/react-dom/umd/react-dom.production.min.js = 176.74 kB 176.36 kB = 55.44 kB 55.07 kB
oss-stable/react-dom/cjs/react-dom.production.min.js = 177.10 kB 176.71 kB = 55.20 kB 54.89 kB
oss-stable-semver/react-dom/cjs/react-dom.production.min.js = 177.02 kB 176.64 kB = 55.17 kB 54.87 kB
oss-experimental/react-dom/cjs/react-dom.profiling.js = 998.98 kB 996.42 kB = 222.71 kB 221.90 kB
oss-stable/react-dom/cjs/react-dom.profiling.js = 996.42 kB 993.85 kB = 221.61 kB 220.81 kB
oss-stable-semver/react-dom/cjs/react-dom.profiling.js = 996.39 kB 993.83 kB = 221.59 kB 220.78 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.production.js = 974.97 kB 972.40 kB = 219.60 kB 218.80 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 957.05 kB 954.48 kB = 215.12 kB 214.31 kB
oss-stable/react-dom/cjs/react-dom.production.js = 954.48 kB 951.91 kB = 214.06 kB 213.25 kB
oss-stable-semver/react-dom/cjs/react-dom.production.js = 954.45 kB 951.89 kB = 214.03 kB 213.22 kB
react-native/implementations/ReactNativeRenderer-profiling.fb.js = 401.56 kB 400.45 kB = 70.29 kB 69.79 kB
react-native/implementations/ReactFabric-profiling.fb.js = 394.08 kB 392.95 kB = 69.01 kB 68.47 kB
react-native/implementations/ReactNativeRenderer-prod.fb.js = 374.20 kB 373.09 kB = 66.01 kB 65.46 kB
react-native/implementations/ReactFabric-prod.fb.js = 366.79 kB 365.65 kB = 64.73 kB 64.20 kB
react-native/implementations/ReactNativeRenderer-profiling.js = 355.28 kB 354.17 kB = 62.30 kB 61.77 kB
react-native/implementations/ReactFabric-profiling.js = 345.55 kB 344.41 kB = 60.54 kB 60.08 kB
react-native/implementations/ReactNativeRenderer-prod.js = 335.88 kB 334.77 kB = 59.08 kB 58.58 kB
react-native/implementations/ReactFabric-prod.js = 326.87 kB 325.74 kB = 57.47 kB 56.99 kB
facebook-www/ReactTestRenderer-dev.classic.js = 945.36 kB 941.63 kB = 188.33 kB 187.15 kB
facebook-www/ReactTestRenderer-dev.modern.js = 945.36 kB 941.62 kB = 188.33 kB 187.14 kB
facebook-www/ReactDOMTesting-dev.classic.js = 1,691.75 kB 1,681.72 kB = 336.12 kB 333.43 kB
facebook-www/ReactDOM-dev.classic.js = 1,670.23 kB 1,660.20 kB = 331.57 kB 328.89 kB
facebook-www/ReactDOMTesting-dev.modern.js = 1,660.67 kB 1,650.64 kB = 330.62 kB 327.94 kB
facebook-www/ReactDOM-dev.modern.js = 1,639.21 kB 1,629.17 kB = 326.06 kB 323.41 kB
facebook-www/ReactART-dev.classic.js = 1,065.88 kB 1,056.80 kB = 209.46 kB 206.92 kB
facebook-www/ReactART-dev.modern.js = 1,053.67 kB 1,044.60 kB = 207.04 kB 204.49 kB
oss-experimental/react-dom/cjs/react-dom-unstable_testing.development.js = 1,357.96 kB 1,341.57 kB = 300.46 kB 295.51 kB
oss-experimental/react-dom/umd/react-dom.development.js = 1,404.68 kB 1,387.65 kB = 299.19 kB 294.25 kB
oss-stable/react-dom/umd/react-dom.development.js = 1,403.26 kB 1,386.23 kB = 298.75 kB 293.85 kB
oss-stable-semver/react-dom/umd/react-dom.development.js = 1,403.23 kB 1,386.20 kB = 298.73 kB 293.82 kB
oss-experimental/react-dom/cjs/react-dom.development.js = 1,340.17 kB 1,323.77 kB = 296.19 kB 291.25 kB
oss-stable/react-dom/cjs/react-dom.development.js = 1,338.91 kB 1,322.51 kB = 295.78 kB 290.87 kB
oss-stable-semver/react-dom/cjs/react-dom.development.js = 1,338.88 kB 1,322.49 kB = 295.75 kB 290.83 kB
facebook-react-native/react-test-renderer/cjs/ReactTestRenderer-dev.js = 933.09 kB 920.77 kB = 186.44 kB 182.85 kB
oss-stable/react-test-renderer/umd/react-test-renderer.development.js = 863.83 kB 852.29 kB = 182.53 kB 178.93 kB
oss-stable-semver/react-test-renderer/umd/react-test-renderer.development.js = 863.81 kB 852.27 kB = 182.50 kB 178.90 kB
oss-experimental/react-test-renderer/umd/react-test-renderer.development.js = 861.98 kB 850.44 kB = 182.03 kB 178.43 kB
oss-stable/react-test-renderer/cjs/react-test-renderer.development.js = 824.94 kB 813.81 kB = 180.57 kB 176.99 kB
oss-stable-semver/react-test-renderer/cjs/react-test-renderer.development.js = 824.91 kB 813.79 kB = 180.54 kB 176.96 kB
oss-experimental/react-test-renderer/cjs/react-test-renderer.development.js = 823.18 kB 812.05 kB = 180.09 kB 176.50 kB
oss-experimental/react-reconciler/cjs/react-reconciler.development.js = 954.04 kB 938.61 kB = 204.52 kB 199.78 kB
oss-stable/react-reconciler/cjs/react-reconciler.development.js = 945.22 kB 929.79 kB = 202.91 kB 198.15 kB
oss-stable-semver/react-reconciler/cjs/react-reconciler.development.js = 945.19 kB 929.77 kB = 202.88 kB 198.13 kB
oss-experimental/react-art/umd/react-art.development.js = 967.58 kB 951.42 kB = 204.22 kB 199.50 kB
react-native/implementations/ReactNativeRenderer-dev.fb.js = 1,104.37 kB 1,085.89 kB = 221.56 kB 216.60 kB
oss-stable/react-art/umd/react-art.development.js = 961.01 kB 944.84 kB = 203.54 kB 198.83 kB
oss-stable-semver/react-art/umd/react-art.development.js = 960.98 kB 944.81 kB = 203.51 kB 198.81 kB
react-native/implementations/ReactFabric-dev.fb.js = 1,089.80 kB 1,071.32 kB = 217.71 kB 212.73 kB
react-native/implementations/ReactNativeRenderer-dev.js = 1,018.40 kB 999.92 kB = 205.14 kB 200.16 kB
oss-experimental/react-art/cjs/react-art.development.js = 850.71 kB 835.14 kB = 184.96 kB 180.14 kB
oss-stable/react-art/cjs/react-art.development.js = 844.49 kB 828.92 kB = 184.34 kB 179.51 kB
oss-stable-semver/react-art/cjs/react-art.development.js = 844.46 kB 828.90 kB = 184.32 kB 179.48 kB
react-native/implementations/ReactFabric-dev.js = 1,002.12 kB 983.64 kB = 201.05 kB 196.06 kB
oss-experimental/react-dom/umd/react-dom-test-utils.production.min.js = 12.52 kB 12.03 kB = 4.87 kB 4.70 kB
oss-stable-semver/react-dom/umd/react-dom-test-utils.production.min.js = 12.52 kB 12.03 kB = 4.87 kB 4.70 kB
oss-stable/react-dom/umd/react-dom-test-utils.production.min.js = 12.52 kB 12.03 kB = 4.87 kB 4.70 kB
oss-experimental/react-dom/cjs/react-dom-test-utils.production.min.js = 12.43 kB 11.94 kB = 4.82 kB 4.66 kB
oss-stable-semver/react-dom/cjs/react-dom-test-utils.production.min.js = 12.43 kB 11.94 kB = 4.82 kB 4.66 kB
oss-stable/react-dom/cjs/react-dom-test-utils.production.min.js = 12.43 kB 11.94 kB = 4.82 kB 4.66 kB
facebook-www/ReactTestUtils-dev.classic.js = 54.14 kB 51.14 kB = 13.80 kB 13.07 kB
facebook-www/ReactTestUtils-dev.modern.js = 54.14 kB 51.14 kB = 13.80 kB 13.07 kB
oss-experimental/react-dom/cjs/react-dom-test-utils.production.js = 45.18 kB 42.64 kB = 12.81 kB 12.11 kB
oss-stable-semver/react-dom/cjs/react-dom-test-utils.production.js = 45.18 kB 42.64 kB = 12.81 kB 12.11 kB
oss-stable/react-dom/cjs/react-dom-test-utils.production.js = 45.18 kB 42.64 kB = 12.81 kB 12.11 kB
oss-experimental/react-dom/umd/react-dom-test-utils.development.js = 58.17 kB 47.41 kB = 16.21 kB 13.10 kB
oss-stable-semver/react-dom/umd/react-dom-test-utils.development.js = 58.17 kB 47.41 kB = 16.21 kB 13.10 kB
oss-stable/react-dom/umd/react-dom-test-utils.development.js = 58.17 kB 47.41 kB = 16.21 kB 13.10 kB
oss-experimental/react-dom/cjs/react-dom-test-utils.development.js = 55.01 kB 44.64 kB = 15.92 kB 12.87 kB
oss-stable-semver/react-dom/cjs/react-dom-test-utils.development.js = 55.01 kB 44.64 kB = 15.92 kB 12.87 kB
oss-stable/react-dom/cjs/react-dom-test-utils.development.js = 55.01 kB 44.64 kB = 15.92 kB 12.87 kB
test_utils/ReactAllWarnings.js Deleted 66.60 kB 0.00 kB Deleted 16.28 kB 0.00 kB

Generated by 🚫 dangerJS against 8ed9d7c

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gnoff
gnoff approved these changes Mar 7, 2024
View reviewed changes
Comment thread packages/react-reconciler/src/ReactFiberWorkLoop.js
!originalError._suppressLogging
) {
// If suppressed, let the flag carry over to the original error which is the one we'll rethrow.
originalError._suppressLogging = true;

@gnoff gnoff Mar 7, 2024

Copy link
Copy Markdown
Collaborator

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.

I forget how this was consumed but do we still want to support this log suppression? Was it useful for reasons outside of the double error reporting? I think this is used by some frameworks to avoid the double log by customizing the window error handling to not warn on errors-as-control flow like redirect and notFound

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@sebmarkbage sebmarkbage Mar 7, 2024

Copy link
Copy Markdown
Contributor Author

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.

I think it's maybe to avoid logging the globally caught error if you've already handled it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
gaearon
gaearon approved these changes Mar 7, 2024
View reviewed changes
rickhanlonii
rickhanlonii approved these changes Mar 8, 2024
View reviewed changes

@rickhanlonii rickhanlonii left a comment

Copy link
Copy Markdown
Contributor

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.

LGTM, tested the PR internally

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sebmarkbage
sebmarkbage force-pushed the rminvokeguardedcallback branch 2 times, most recently from de66616 to fe246c9 Compare March 9, 2024 22:59
sebmarkbage
sebmarkbage commented Mar 9, 2024
View reviewed changes
Comment thread packages/react-reconciler/src/__tests__/ReactSuspenseEffectsSemantics-test.js
let useLayoutEffectShouldThrow = false;

function ThrowsInLayoutEffect() {
function ThrowsInLayoutEffect({unused}) {

@sebmarkbage sebmarkbage Mar 9, 2024

Copy link
Copy Markdown
Contributor Author

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.

These tests used to only run in dev.

In prod we don't disable logs during component stack generation, so when the component stack gets generated it ends up logging again. We can avoid that by ensure component stacks error before the log. E.g. by destructuring props.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
sebmarkbage
sebmarkbage commented Mar 9, 2024
View reviewed changes
Comment thread packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js

// Partially render A, but yield before the render has finished
await waitFor(['Oops!', 'Oops!']);
await waitFor(['Oops!']);

@sebmarkbage sebmarkbage Mar 9, 2024

Copy link
Copy Markdown
Contributor Author

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.

This one is weird because it used to log twice in both DEV and prod for two different reasons.

In DEV it used to log twice because we did the replay trick which I now removed.

In prod it used to log twice because the component stack generation runs the function again and we don't disable Scheduler.log in prod during this generation - only in dev. To avoid this scenario I use props destructuring so it errors earlier instead.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sebmarkbage
sebmarkbage force-pushed the rminvokeguardedcallback branch 5 times, most recently from b8b7566 to eb6c0cc Compare March 10, 2024 00:54
sebmarkbage
sebmarkbage commented Mar 10, 2024
View reviewed changes
Comment thread packages/react-dom/src/__tests__/ReactDOMConsoleErrorReporting-test.js

describe('ReactDOMClient.createRoot', () => {
it('logs errors during event handlers', async () => {
spyOnDevAndProd(console, 'error');

@sebmarkbage sebmarkbage Mar 10, 2024

Copy link
Copy Markdown
Contributor Author

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.

I had to switch to manual mocking. The spyOnDevAndProd helper doesn't work in a bunch of cases and I have no idea why.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@sebmarkbage sebmarkbage Mar 10, 2024

Copy link
Copy Markdown
Contributor Author

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.

I guess spyOn also calls the inner one. So in these cases it's because we're no longer ignoring uncaught error in logs.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sebmarkbage

sebmarkbage commented Mar 10, 2024

Copy link
Copy Markdown
Contributor Author

It's not quite that easy it turns out. Added a bunch of TODOs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sebmarkbage
sebmarkbage commented Mar 10, 2024
View reviewed changes
Comment thread scripts/jest/shouldIgnoreConsoleError.js
@@ -7,12 +7,8 @@ module.exports = function shouldIgnoreConsoleError(
) {

@sebmarkbage sebmarkbage Mar 10, 2024

Copy link
Copy Markdown
Contributor Author

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.

We need to get this file down to zero because it's covering up a bunch of quirks.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@sebmarkbage
sebmarkbage force-pushed the rminvokeguardedcallback branch 7 times, most recently from bfa05cd to 62c0201 Compare March 11, 2024 23:20
sebmarkbage added 3 commits March 11, 2024 16:53
@sebmarkbage
Remove invokeGuardedCallback and replay trick
6455dbc
@sebmarkbage
Inline ReactErrorUtils
944275e
This is pretty simple now.
@sebmarkbage
Print the error in DEV with addendum
aae244d
Since we no longer get the error printed by the browser automatically
we have to manually print the error with an addendum which contains
component stacks.
@sebmarkbage
sebmarkbage force-pushed the rminvokeguardedcallback branch from 62c0201 to aae244d Compare March 11, 2024 23:54
@sebmarkbage

sebmarkbage commented Mar 11, 2024

Copy link
Copy Markdown
Contributor Author

There's no way to silence the logs when an error boundary catches it now but I have a follow up to change a few other things and introduce a possible way to silence it, but it can't be onerror that does it which is a breaking change.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sebmarkbage
Rebase fix
8ed9d7c
@sebmarkbage
sebmarkbage force-pushed the rminvokeguardedcallback branch from 81f7250 to 8ed9d7c Compare March 12, 2024 00:03
@sebmarkbage
sebmarkbage merged commit 89021fb into react:main Mar 12, 2024
github-actions Bot pushed a commit that referenced this pull request Mar 12, 2024
@sebmarkbage
Remove invokeGuardedCallback and replay trick (#28515)
4387423
We broke the ability to "break on uncaught exceptions" by adding a
try/catch higher up in the scheduling. We're giving up on fixing that so
we can remove the replay trick inside an event handler.

The issue with that approach is that we end up double logging a lot of
errors in DEV since they get reported to the page.

It's also a lot of complexity around this feature.

DiffTrain build for [89021fb](89021fb)
@ztanner ztanner mentioned this pull request Mar 18, 2024
Update React from 6c3b8dbfe to a4939017f vercel/next.js#63413
Closed
@gnoff gnoff mentioned this pull request Mar 25, 2024
Update React from 14898b6a9 to e373190fa vercel/next.js#63685
Closed
gnoff added a commit to gnoff/next.js that referenced this pull request Mar 25, 2024
@gnoff
Update React from 14898b6a9 to e373190fa
1a2ce1f
- react/react#28596
- react/react#28625
- react/react#28616
- react/react#28491
- react/react#28583
- react/react#28427
- react/react#28613
- react/react#28599
- react/react#28611
- react/react#28610
- react/react#28606
- react/react#28598
- react/react#28549
- react/react#28557
- react/react#28467
- react/react#28591
- react/react#28459
- react/react#28590
- react/react#28564
- react/react#28582
- react/react#28579
- react/react#28578
- react/react#28521
- react/react#28550
- react/react#28576
- react/react#28577
- react/react#28571
- react/react#28572
- react/react#28560
- react/react#28569
- react/react#28573
- react/react#28546
- react/react#28568
- react/react#28562
- react/react#28566
- react/react#28565
- react/react#28559
- react/react#28508
- react/react#20432
- react/react#28555
- react/react#24730
- react/react#28472
- react/react#27991
- react/react#28514
- react/react#28548
- react/react#28526
- react/react#28515
- react/react#28533
- react/react#28532
- react/react#28531
- react/react#28407
- react/react#28522
- react/react#28538
- react/react#28509
- react/react#28534
- react/react#28527
- react/react#28528
- react/react#28519
- react/react#28411
- react/react#28520
- react/react#28518
- react/react#28493
- react/react#28504
- react/react#28499
- react/react#28501
- react/react#28496
- react/react#28471
- react/react#28351
- react/react#28486
- react/react#28490
- react/react#28488
- react/react#28468
- react/react#28321
- react/react#28477
- react/react#28479
- react/react#28480
- react/react#28478
- react/react#28464
- react/react#28475
- react/react#28456
- react/react#28319
- react/react#28345
- react/react#28337
- react/react#28335
- react/react#28466
- react/react#28462
- react/react#28322
- react/react#28444
- react/react#28448
- react/react#28449
- react/react#28446
- react/react#28447
- react/react#24580
@ztanner ztanner mentioned this pull request Apr 2, 2024
Update React from 14898b6a9 to a870b2d54 vercel/next.js#63976
Closed
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
@sebmarkbage @AndyPengc12
Remove invokeGuardedCallback and replay trick (react#28515)
9bd771a
We broke the ability to "break on uncaught exceptions" by adding a
try/catch higher up in the scheduling. We're giving up on fixing that so
we can remove the replay trick inside an event handler.

The issue with that approach is that we end up double logging a lot of
errors in DEV since they get reported to the page.

It's also a lot of complexity around this feature.
@hoxyq hoxyq mentioned this pull request Apr 15, 2024
React DevTools 5.0.2 -> 5.1.0 #28840
Merged
hoxyq added a commit that referenced this pull request Apr 15, 2024
@hoxyq
React DevTools 5.0.2 -> 5.1.0 (#28840)
2d128ff
Full list of changes:
* Look for a ReactMemoCacheSentinel on state
([gsathya](https://github.com/gsathya) in
[#28831](#28831))
* Use use() in the Cache if available
([sebmarkbage](https://github.com/sebmarkbage) in
[#28793](#28793))
* feat[devtools-fusebox]: support theme option
([hoxyq](https://github.com/hoxyq) in
[#28832](#28832))
* feat[devtools]: add package for fusebox integration
([hoxyq](https://github.com/hoxyq) in
[#28553](#28553))
* feat[devtools]: add method for connecting backend with custom
messaging protocol ([hoxyq](https://github.com/hoxyq) in
[#28552](#28552))
* Rename SECRET INTERNALS to
`__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`
([sebmarkbage](https://github.com/sebmarkbage) in
[#28789](#28789))
* Flatten ReactSharedInternals
([sebmarkbage](https://github.com/sebmarkbage) in
[#28783](#28783))
* feat[devtools]: ship source maps for content scripts and ignore list
installHook script ([hoxyq](https://github.com/hoxyq) in
[#28730](#28730))
* Track Owner for Server Components in DEV
([sebmarkbage](https://github.com/sebmarkbage) in
[#28753](#28753))
* Move ReactDOMLegacy implementation into RootFB
([sebmarkbage](https://github.com/sebmarkbage) in
[#28656](#28656))
* Reland #28672: Remove IndeterminateComponent
([gnoff](https://github.com/gnoff) in
[#28681](#28681))
* Remove reference to deleted <Cache> in un-linted file
([josephsavona](https://github.com/josephsavona) in
[#28715](#28715))
* [be] Remove unshipped experimental <Cache> element type
([josephsavona](https://github.com/josephsavona) in
[#28698](#28698))
* Revert "Remove module pattern function component support"
([rickhanlonii](https://github.com/rickhanlonii) in
[#28670](#28670))
* Remove module pattern function component support
([gnoff](https://github.com/gnoff) in
[#27742](#27742))
* [RTR] Enable warning flag ([jackpope](https://github.com/jackpope) in
[#28419](#28419))
* Update error messages ([rickhanlonii](https://github.com/rickhanlonii)
in [#28652](#28652))
* fix[devtools/ci]: split profiling cache test for different react
versions and toEqual checker ([hoxyq](https://github.com/hoxyq) in
[#28628](#28628))
* Guard against legacy context not being supported in DevTools fixture
([eps1lon](https://github.com/eps1lon) in
[#28596](#28596))
* Use `declare const` instead of `declare var`
([kassens](https://github.com/kassens) in
[#28599](#28599))
* Update isConcurrent RTR option usage
([jackpope](https://github.com/jackpope) in
[#28546](#28546))
* Disable legacy context ([kassens](https://github.com/kassens) in
[#27991](#27991))
* Remove invokeGuardedCallback and replay trick
([sebmarkbage](https://github.com/sebmarkbage) in
[#28515](#28515))
* Remove remaining usages of ReactTestUtils in tests unrelated to
`react-dom/test-util` ([eps1lon](https://github.com/eps1lon) in
[#28534](#28534))
* fix[devtools/e2e]: fixed source inspection in e2e tests
([hoxyq](https://github.com/hoxyq) in
[#28518](#28518))
* Devtools: Display actual pending state when inspecting `useTransition`
([eps1lon](https://github.com/eps1lon) in
[#28499](#28499))
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
@sebmarkbage
Remove invokeGuardedCallback and replay trick (#28515)
81f40d0
We broke the ability to "break on uncaught exceptions" by adding a
try/catch higher up in the scheduling. We're giving up on fixing that so
we can remove the replay trick inside an event handler.

The issue with that approach is that we end up double logging a lot of
errors in DEV since they get reported to the page.

It's also a lot of complexity around this feature.

DiffTrain build for commit 89021fb.
This was referenced Apr 19, 2024
Update React from 14898b6a9 to c3048aab4 vercel/next.js#64798
Merged
Cleanup replayFailedUnitOfWorkWithInvokeGuardedCallbackand enableProfilerNestedUpdateScheduledHook #28891
Merged
@bvaughn bvaughn mentioned this pull request Aug 6, 2024
fix: fix #189 remove the redundant uncaught error and error stack trace from the console bvaughn/react-error-boundary#191
Closed
3 tasks done
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@sebmarkbage
Remove invokeGuardedCallback and replay trick (react#28515)
84a5958
We broke the ability to "break on uncaught exceptions" by adding a
try/catch higher up in the scheduling. We're giving up on fixing that so
we can remove the replay trick inside an event handler.

The issue with that approach is that we end up double logging a lot of
errors in DEV since they get reported to the page.

It's also a lot of complexity around this feature.
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@hoxyq
React DevTools 5.0.2 -> 5.1.0 (react#28840)
16e591d
Full list of changes:
* Look for a ReactMemoCacheSentinel on state
([gsathya](https://github.com/gsathya) in
[react#28831](react#28831))
* Use use() in the Cache if available
([sebmarkbage](https://github.com/sebmarkbage) in
[react#28793](react#28793))
* feat[devtools-fusebox]: support theme option
([hoxyq](https://github.com/hoxyq) in
[react#28832](react#28832))
* feat[devtools]: add package for fusebox integration
([hoxyq](https://github.com/hoxyq) in
[react#28553](react#28553))
* feat[devtools]: add method for connecting backend with custom
messaging protocol ([hoxyq](https://github.com/hoxyq) in
[react#28552](react#28552))
* Rename SECRET INTERNALS to
`__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`
([sebmarkbage](https://github.com/sebmarkbage) in
[react#28789](react#28789))
* Flatten ReactSharedInternals
([sebmarkbage](https://github.com/sebmarkbage) in
[react#28783](react#28783))
* feat[devtools]: ship source maps for content scripts and ignore list
installHook script ([hoxyq](https://github.com/hoxyq) in
[react#28730](react#28730))
* Track Owner for Server Components in DEV
([sebmarkbage](https://github.com/sebmarkbage) in
[react#28753](react#28753))
* Move ReactDOMLegacy implementation into RootFB
([sebmarkbage](https://github.com/sebmarkbage) in
[react#28656](react#28656))
* Reland react#28672: Remove IndeterminateComponent
([gnoff](https://github.com/gnoff) in
[react#28681](react#28681))
* Remove reference to deleted <Cache> in un-linted file
([josephsavona](https://github.com/josephsavona) in
[react#28715](react#28715))
* [be] Remove unshipped experimental <Cache> element type
([josephsavona](https://github.com/josephsavona) in
[react#28698](react#28698))
* Revert "Remove module pattern function component support"
([rickhanlonii](https://github.com/rickhanlonii) in
[react#28670](react#28670))
* Remove module pattern function component support
([gnoff](https://github.com/gnoff) in
[react#27742](react#27742))
* [RTR] Enable warning flag ([jackpope](https://github.com/jackpope) in
[react#28419](react#28419))
* Update error messages ([rickhanlonii](https://github.com/rickhanlonii)
in [react#28652](react#28652))
* fix[devtools/ci]: split profiling cache test for different react
versions and toEqual checker ([hoxyq](https://github.com/hoxyq) in
[react#28628](react#28628))
* Guard against legacy context not being supported in DevTools fixture
([eps1lon](https://github.com/eps1lon) in
[react#28596](react#28596))
* Use `declare const` instead of `declare var`
([kassens](https://github.com/kassens) in
[react#28599](react#28599))
* Update isConcurrent RTR option usage
([jackpope](https://github.com/jackpope) in
[react#28546](react#28546))
* Disable legacy context ([kassens](https://github.com/kassens) in
[react#27991](react#27991))
* Remove invokeGuardedCallback and replay trick
([sebmarkbage](https://github.com/sebmarkbage) in
[react#28515](react#28515))
* Remove remaining usages of ReactTestUtils in tests unrelated to
`react-dom/test-util` ([eps1lon](https://github.com/eps1lon) in
[react#28534](react#28534))
* fix[devtools/e2e]: fixed source inspection in e2e tests
([hoxyq](https://github.com/hoxyq) in
[react#28518](react#28518))
* Devtools: Display actual pending state when inspecting `useTransition`
([eps1lon](https://github.com/eps1lon) in
[react#28499](react#28499))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gaearon gaearon gaearon approved these changes
@gnoff gnoff gnoff approved these changes
+1 more reviewer
@rickhanlonii rickhanlonii rickhanlonii approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

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.

6 participants

@sebmarkbage @react-sizebot @gaearon @rickhanlonii @gnoff @facebook-github-bot
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.