react/packages/shared
Brian Vaughn d3b183c323
Debug render-phase side effects in "strict" mode (#12094)
A new feature flag has been added, debugRenderPhaseSideEffectsForStrictMode. When enabled, StrictMode subtrees will also double-invoke lifecycles in the same way as debugRenderPhaseSideEffects.

By default, this flag is enabled for __DEV__ only. Internally we can toggle it with a GK.

This breaks several of our incremental tests which make use of the noop-renderer. Updating the tests to account for the double-rendering in development mode makes them significantly more complicated. The most straight forward fix for this will be to convert them to be run as internal tests only. I believe this is reasonable since we are the only people making use of the noop renderer.
2018-01-25 14:30:53 -08:00
..
__tests__ Update additional tests to use .toWarnDev() matcher (#11957) 2018-01-03 13:55:37 -08:00
forks Debug render-phase side effects in "strict" mode (#12094) 2018-01-25 14:30:53 -08:00
ReactContext.js New context API (#11818) 2018-01-24 19:36:22 -08:00
ReactDOMFrameScheduling.js https fb.me links (#11779) 2017-12-05 10:39:16 -08:00
ReactElementType.js Remove unnecessary 'use strict' in the source (#11433) 2017-11-02 20:32:48 +00:00
ReactErrorUtils.js Use static injection for ReactErrorUtils (#11725) 2017-11-30 19:10:46 +00:00
ReactFeatureFlags.js Debug render-phase side effects in "strict" mode (#12094) 2018-01-25 14:30:53 -08:00
ReactFiberComponentTreeHook.js shared: convert vars into let/const (#11730) 2017-12-01 00:03:27 +00:00
ReactGlobalSharedState.js shared: convert vars into let/const (#11730) 2017-12-01 00:03:27 +00:00
ReactInstanceMap.js Update prettier to 1.8.1 (#10785) 2017-11-07 18:09:33 +00:00
ReactPortal.js Rewrote ReactIncrementalPerf-test using only public API.(#11299) (#11724) 2017-11-30 18:10:04 +00:00
ReactSymbols.js New context API (#11818) 2018-01-24 19:36:22 -08:00
ReactTreeTraversal.js shared: convert vars into let/const (#11730) 2017-12-01 00:03:27 +00:00
ReactTypeOfSideEffect.js Use binary numbers representation directly (#11873) 2017-12-17 17:56:16 -08:00
ReactTypeOfWork.js New context API (#11818) 2018-01-24 19:36:22 -08:00
ReactTypes.js New context API (#11818) 2018-01-24 19:36:22 -08:00
ReactVersion.js Updating package versions for release 16.2.0 2017-11-28 13:26:36 -08:00
describeComponentFrame.js Update prettier to 1.8.1 (#10785) 2017-11-07 18:09:33 +00:00
getComponentName.js Call and Return components should use ReactElement (#11834) 2017-12-12 15:04:40 -08:00
invokeGuardedCallback.js Use static injection for ReactErrorUtils (#11725) 2017-11-30 19:10:46 +00:00
isTextInputElement.js shared: convert vars into let/const (#11730) 2017-12-01 00:03:27 +00:00
lowPriorityWarning.js shared: convert vars into let/const (#11730) 2017-12-01 00:03:27 +00:00
package.json Drop Haste (#11303) 2017-10-25 02:55:00 +03:00
reactProdInvariant.js shared: convert vars into let/const (#11730) 2017-12-01 00:03:27 +00:00