File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -295,9 +295,10 @@ class ReactShallowRenderer {
295
295
first : null ,
296
296
dispatch : null ,
297
297
} );
298
- const dispatch: Dispatch<
299
- A ,
300
- > = (queue.dispatch = (this._dispatchAction.bind(this, queue): any));
298
+ const dispatch: Dispatch< A > = (queue.dispatch = (this._dispatchAction.bind(
299
+ this,
300
+ queue,
301
+ ): any));
301
302
return [workInProgressHook.memoizedState, dispatch];
302
303
}
303
304
} ;
@@ -529,7 +530,7 @@ class ReactShallowRenderer {
529
530
'ReactShallowRenderer render(): Invalid component element.%s' ,
530
531
typeof element === 'function'
531
532
? ' Instead of passing a component class, make sure to instantiate ' +
532
- 'it by passing it to React.createElement.'
533
+ 'it by passing it to React.createElement.'
533
534
: '' ,
534
535
) ;
535
536
element = ( ( element : any ) : ReactElement ) ;
@@ -543,14 +544,15 @@ class ReactShallowRenderer {
543
544
) ;
544
545
invariant (
545
546
isForwardRef ( element ) ||
546
- ( typeof element . type === 'function' || isMemo ( element ) ) ,
547
+ typeof element . type === 'function' ||
548
+ isMemo ( element ) ,
547
549
'ReactShallowRenderer render(): Shallow rendering works only with custom ' +
548
550
'components, but the provided element type was `%s`.' ,
549
551
Array . isArray ( element . type )
550
552
? 'array'
551
553
: element . type === null
552
- ? 'null'
553
- : typeof element . type ,
554
+ ? 'null'
555
+ : typeof element . type ,
554
556
) ;
555
557
556
558
if ( this . _rendering ) {
You can’t perform that action at this time.
0 commit comments