dillon1000/react

Commit

feat: honor displayName of context types (#18224)

* Revert "Revert "feat: honor displayName of context types (#18035)" (#18223)"

This reverts commit 3ee812e6b67d52a6f262144e78721f9340c36a04.

* Add warning of displayName is set on the consumer

* dedupe warning
Browse files
Changed paths3 files
First-parent comparison
M packages/react/src/ReactContext.js ModifiedM packages/react/src/__tests__/ReactContextValidator-test.js ModifiedM packages/shared/getComponentName.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…