react/fixtures
Sebastian Markbåge cdfde3ae11
Always rethrow original error when we replay errors (#20425)
We replay errors so you can break on paused exceptions. This is done in
the second pass so that the first pass can ignore suspense.

Originally this threw the original error. For suppression purposes
we copied the flag onto the original error.

f1dc626b29/packages/react-reconciler/src/ReactFiberScheduler.old.js (L367-L369)

During this refactor it changed to just throw the retried error:

https://github.com/facebook/react/pull/15151

We're not sure exactly why but it was likely just an optimization or
clean up.

So we can go back to throwing the original error. That helps in the case
where a memoized function is naively not rethrowing each time such as
in Node's module system.

Unfortunately this doesn't fix the problem fully.
Because invokeGuardedCallback captures the error and logs it to the browser.
So you still end up seeing the wrong message in the logs.

This just fixes so that the error boundary sees the first one.
2020-12-10 05:50:41 -08:00
..
art Upgrade art fixtures to babel 7 (#16235) 2020-07-25 23:43:49 -04:00
attribute-behavior Update outdated links and fix two broken links (#19985) 2020-10-09 02:56:30 +01:00
blocks [Blocks] Scaffolding react-fetch + first pass at node implementation (#18863) 2020-05-12 17:21:45 +01:00
concurrent/time-slicing Update Fixtures to use new APIs (#17380) 2019-11-17 14:42:47 -08:00
devtools Revert "DevTools: Improve browser extension iframe support (#19854)" (#19959) 2020-10-05 09:44:08 -04:00
dom Always rethrow original error when we replay errors (#20425) 2020-12-10 05:50:41 -08:00
eslint Bump Prettier (#17811) 2020-01-09 13:54:11 +00:00
expiration Bump handlebars from 4.0.11 to 4.5.3 in /fixtures/expiration (#17729) 2019-12-30 08:57:08 -08:00
fiber-debugger Rename effect fields (#19755) 2020-09-04 14:34:07 -07:00
fiber-triangle Publish a local release (canary or stable) to NPM (#14260) 2018-11-23 12:37:18 -08:00
fizz-ssr-browser Remove /dist/ UMD builds (#18473) 2020-04-02 17:52:32 -07:00
flight [Flight] Rename react-transport-... packages to react-server-... (#20403) 2020-12-08 08:08:57 -05:00
flight-browser [Flight] Prevent non-Server imports of aliased Server entrypoints (#20422) 2020-12-10 03:55:38 +00:00
legacy-jsx-runtimes chore: downgrade source-map-support for stack "fix" (#20026) 2020-10-14 20:45:54 +01:00
nesting Nesting Fixture (#19531) 2020-08-07 02:08:41 +01:00
packaging Remove /dist/ UMD builds (#18473) 2020-04-02 17:52:32 -07:00
scheduler Add test of scheduler overhead (#16260) 2019-08-01 17:13:39 -07:00
ssr Remove withSuspenseConfig (#19724) 2020-08-31 09:16:49 -07:00
stacks Fix Component Stacks for IE and Native Classes in Safari (#18575) 2020-04-10 19:39:02 -07:00
tracing Fix spelling errors and typos (#19138) 2020-06-15 19:59:44 -04:00