react/packages/shared
Andrew Clark b4a1a4980c
Disable <div hidden /> API in old fork, too (#18917)
The motivation for doing this is to make it impossible for additional
uses of pre-rendering to sneak into www without going through the
LegacyHidden abstraction. Since this feature was already disabled in
the new fork, this brings the two closer to parity.

The LegacyHidden abstraction itself still needs to opt into
pre-rendering somehow, so rather than totally disabling the feature, I
updated the `hidden` prop check to be obnoxiously specific. Before, you
could set it to any truthy value; now, you must set it to the string
"unstable-do-not-use-legacy-hidden".

The node will still be hidden in the DOM, since any truthy value will
cause the browser to apply a style of `display: none`.

I will have to update the LegacyHidden component in www to use the
obnoxious string prop. This doesn't block merge, though, since the
behavior is gated by a dynamic flag. I will update the component before
I enable the flag.
2020-05-13 20:01:10 -07:00
..
__tests__ Don't dedupe using the stack (#18693) 2020-04-22 19:02:11 -07:00
forks Disable <div hidden /> API in old fork, too (#18917) 2020-05-13 20:01:10 -07:00
ConsolePatchingDev.js Add expando prop to disabledLog function (#18914) 2020-05-13 17:03:50 -07:00
ExecutionEnvironment.js give `canUseDOM` with a possibility to be a constant (#14194) 2019-04-25 11:28:53 +01:00
ReactComponentStackFrame.js Disable prepareStackTrace while we're generating stacks (#18708) 2020-04-23 09:16:58 -07: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 Disable <div hidden /> API in old fork, too (#18917) 2020-05-13 20:01:10 -07: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 Move legacy hidden API to new internal Fiber type (#18782) 2020-04-30 19:37:27 -07:00
ReactTypes.js Refine experimental Scopes API (#18778) 2020-05-01 19:01:43 +01:00
ReactVersion.js Update package.jsons for 16.13.1 patch relase 2020-03-19 12:58:31 -07:00
checkPropTypes.js Enable prefer-const lint rules (#18451) 2020-04-01 12:35:52 -07:00
consoleWithStackDev.js Avoid passing custom stacks to console.error (#18685) 2020-04-21 09:22:46 -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 Enable prefer-const lint rules (#18451) 2020-04-01 12:35:52 -07:00
invariant.js Compile invariant directly to throw expressions (#15071) 2019-03-18 13:58:03 -07:00
invokeGuardedCallbackImpl.js Enable prefer-const lint rules (#18451) 2020-04-01 12:35:52 -07:00
isValidElementType.js Expose LegacyHidden type and disable <div hidden /> API in new fork (#18891) 2020-05-11 20:02:08 -07: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