react/packages/shared
Brian Vaughn 766a7a28a9
Improve React error message when mutable sources are mutated during render (#20665)
Changed previous error message from:
> Cannot read from mutable source during the current render without tearing. This is a bug in React. Please file an issue.

To:
> Cannot read from mutable source during the current render without tearing. This may be a bug in React. Please file an issue.

Also added a DEV only warning about the unsafe side effect:
> A mutable source was mutated while the %s component was rendering. This is not supported. Move any mutations into event handlers or effects.

I think this is the best we can do without adding production overhead that we'd probably prefer to avoid.
2021-01-29 10:22:55 -05:00
..
__tests__ Refactor SchedulerHostConfigs (#20025) 2020-11-02 12:46:58 -05:00
forks Queue discrete events in microtask (#20669) 2021-01-27 18:24:58 -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 Queue discrete events in microtask (#20669) 2021-01-27 18:24:58 -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 Improve React error message when mutable sources are mutated during render (#20665) 2021-01-29 10:22:55 -05: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