react/packages/shared
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
..
__tests__ Refactor SchedulerHostConfigs (#20025) 2020-11-02 12:46:58 -05:00
forks Improve error boundary handling for unmounted subtrees (#20645) 2021-01-25 08:54:20 -05:00
ConsolePatchingDev.js Add console group methods to dev disabled groups (#19069) 2020-07-08 17:28:49 +01:00
ExecutionEnvironment.js give `canUseDOM` with a possibility to be a constant (#14194) 2019-04-25 11:28:53 +01:00
ReactComponentStackFrame.js Add disableNativeComponentFrames flag (#20364) 2020-12-02 16:25:55 +01:00
ReactElementType.js Update Flow to 0.84 (#17805) 2020-01-09 14:50:44 +00:00
ReactErrorUtils.js Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
ReactFeatureFlags.js Improve error boundary handling for unmounted subtrees (#20645) 2021-01-25 08:54:20 -05:00
ReactInstanceMap.js Rename internal fields (#18377) 2020-03-24 18:19:20 +00:00
ReactSharedInternals.js Don't support older isomorphic React with newer renderers (#18329) 2020-03-17 19:30:10 +00:00
ReactSymbols.js Add built-in Suspense cache with support for invalidation (refreshing) (#20456) 2020-12-18 10:57:24 -08:00
ReactTypes.js Remove the deprecated React Flare event system (#19520) 2020-08-05 15:13:29 +01:00
ReactVersion.js Fixed invalid DevTools work tags (#20362) 2020-12-01 10:33:32 -05:00
checkPropTypes.js Only prepare extra stack frames if needed (#19014) 2020-05-27 08:43:50 -07:00
consoleWithStackDev.js Remove unnecessary throw catch (#19044) 2020-05-29 11:25:48 -07:00
enqueueTask.js Fix requiring timers module with non standard require (#18632) 2020-04-16 12:36:09 +01:00
formatProdErrorMessage.js Pass prod error messages directly to constructor (#17063) 2019-10-11 09:10:40 -07:00
getComponentName.js Add built-in Suspense cache with support for invalidation (refreshing) (#20456) 2020-12-18 10:57:24 -08:00
invariant.js Compile invariant directly to throw expressions (#15071) 2019-03-18 13:58:03 -07:00
invokeGuardedCallbackImpl.js Update outdated links and fix two broken links (#19985) 2020-10-09 02:56:30 +01:00
isValidElementType.js Add built-in Suspense cache with support for invalidation (refreshing) (#20456) 2020-12-18 10:57:24 -08:00
objectIs.js Update to flow 0.97 (#17892) 2020-01-24 10:52:38 -08:00
package.json Drop Haste (#11303) 2017-10-25 02:55:00 +03:00
shallowEqual.js Separate Object.is polyfill (#14334) 2019-01-08 14:21:12 +00:00