We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68fe402 commit a0a1758Copy full SHA for a0a1758
src/ReactShallowRenderer.js
@@ -515,7 +515,7 @@ See https://fb.me/react-invalid-hook-call for tips about how to debug and fix th
515
516
this._rendering = true;
517
this._element = element;
518
- this._context = element.contextType
+ this._context = elementType.contextType
519
? context
520
: getMaskedContext(elementType.contextTypes, context);
521
0 commit comments