(type, compare)
| 1530 | } |
| 1531 | |
| 1532 | function memo(type, compare) { |
| 1533 | { |
| 1534 | if (!isValidElementType(type)) { |
| 1535 | error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type); |
| 1536 | } |
| 1537 | } |
| 1538 | |
| 1539 | return { |
| 1540 | $$typeof: REACT_MEMO_TYPE, |
| 1541 | type: type, |
| 1542 | compare: compare === undefined ? null : compare |
| 1543 | }; |
| 1544 | } |
| 1545 | |
| 1546 | function resolveDispatcher() { |
| 1547 | var dispatcher = ReactCurrentDispatcher.current; |
nothing calls this directly
no test coverage detected