Skip to content

Commit

Permalink
Remove propTypes checks for legacy context (#28324)
Browse files Browse the repository at this point in the history
Part of #28207, this is easy to
land in isolation.

The approach I'm taking is slightly different — instead of leaving
validation on for legacy context, I disable the validation (it's
DEV-only) and leave just the parts that drive the runtime logic. I.e.
`contexTypes` and `childContextTypes` *values* are now ignored, the keys
are used just like before.

DiffTrain build for [64e755d](64e755d)
  • Loading branch information
gaearon committed Feb 14, 2024
1 parent 7b53202 commit 3322b72
Show file tree
Hide file tree
Showing 13 changed files with 6,756 additions and 6,831 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5d445b50a670d6cdc52943ca4e5ab3422792c57c
64e755d7374d753c75dc16ba1a4a09ce7b8689dd
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,4 +618,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactCurrentDispatcher.current.useTransition();
};
exports.version = "18.3.0-www-classic-a886996f";
exports.version = "18.3.0-www-classic-e7aae6cc";
Loading

0 comments on commit 3322b72

Please sign in to comment.