react/packages/shared/forks
Brian Vaughn 895ae67fd3
Improve error boundary handling for unmounted subtrees (#20645)
A passive effect's cleanup function may throw after an unmount. Prior to this commit, such an error would be ignored. (React would not notify any error boundaries.)

After this commit, React will skip any unmounted boundaries and look for a still-mounted boundary. If one is found, it will call getDerivedStateFromError and/or componentDidCatch (depending on the type of boundary). Unmounted boundaries will be ignored, but as they have been unmounted– this seems appropriate.
2021-01-25 08:54:20 -05:00
..
ReactFeatureFlags.native-fb.js Improve error boundary handling for unmounted subtrees (#20645) 2021-01-25 08:54:20 -05:00
ReactFeatureFlags.native-oss.js Improve error boundary handling for unmounted subtrees (#20645) 2021-01-25 08:54:20 -05:00
ReactFeatureFlags.readonly.js Allow reading default feature flags from bundle tests (#13629) 2018-09-12 16:56:04 +01:00
ReactFeatureFlags.test-renderer.js Improve error boundary handling for unmounted subtrees (#20645) 2021-01-25 08:54:20 -05:00
ReactFeatureFlags.test-renderer.native.js Improve error boundary handling for unmounted subtrees (#20645) 2021-01-25 08:54:20 -05:00
ReactFeatureFlags.test-renderer.www.js Improve error boundary handling for unmounted subtrees (#20645) 2021-01-25 08:54:20 -05:00
ReactFeatureFlags.testing.js Improve error boundary handling for unmounted subtrees (#20645) 2021-01-25 08:54:20 -05:00
ReactFeatureFlags.testing.www.js Improve error boundary handling for unmounted subtrees (#20645) 2021-01-25 08:54:20 -05:00
ReactFeatureFlags.www-dynamic.js Improve error boundary handling for unmounted subtrees (#20645) 2021-01-25 08:54:20 -05:00
ReactFeatureFlags.www.js Improve error boundary handling for unmounted subtrees (#20645) 2021-01-25 08:54:20 -05:00
Scheduler.umd.js Codemod to import * as React from "react"; (#18102) 2020-02-21 19:45:20 -08:00
SchedulerTracing.umd.js Codemod to import * as React from "react"; (#18102) 2020-02-21 19:45:20 -08:00
consoleWithStackDev.www.js Avoid passing custom stacks to console.error (#18685) 2020-04-21 09:22:46 -07:00
invokeGuardedCallbackImpl.www.js Enable prefer-const lint rules (#18451) 2020-04-01 12:35:52 -07:00
object-assign.inline-umd.js Enable prefer-const lint rules (#18451) 2020-04-01 12:35:52 -07:00
object-assign.umd.js Codemod to import * as React from "react"; (#18102) 2020-02-21 19:45:20 -08:00