File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-shallow-renderer" ,
3
- "version" : " 16.14.1 " ,
3
+ "version" : " 16.14.2 " ,
4
4
"description" : " React package for shallow rendering." ,
5
5
"main" : " index.js" ,
6
6
"repository" : " https://github.com/NMinhNguyen/react-shallow-renderer.git" ,
Original file line number Diff line number Diff line change @@ -500,7 +500,9 @@ See https://fb.me/react-invalid-hook-call for tips about how to debug and fix th
500
500
501
501
this . _rendering = true ;
502
502
this . _element = element ;
503
- this . _context = getMaskedContext ( elementType . contextTypes , context ) ;
503
+ this . _context = element . contextType
504
+ ? context
505
+ : getMaskedContext ( elementType . contextTypes , context ) ;
504
506
505
507
// Inner memo component props aren't currently validated in createElement.
506
508
let prevGetStack ;
You can’t perform that action at this time.
0 commit comments