( current, workInProgress, Component, nextProps, renderLanes )
| 8959 | return workInProgress.child; |
| 8960 | } |
| 8961 | function updateMemoComponent( |
| 8962 | current, |
| 8963 | workInProgress, |
| 8964 | Component, |
| 8965 | nextProps, |
| 8966 | renderLanes |
| 8967 | ) { |
| 8968 | if (null === current) { |
| 8969 | var type = Component.type; |
| 8970 | if ( |
| 8971 | "function" === typeof type && |
| 8972 | !shouldConstruct(type) && |
| 8973 | void 0 === type.defaultProps && |
| 8974 | null === Component.compare |
| 8975 | ) |
| 8976 | return ( |
| 8977 | (workInProgress.tag = 15), |
| 8978 | (workInProgress.type = type), |
| 8979 | updateSimpleMemoComponent( |
| 8980 | current, |
| 8981 | workInProgress, |
| 8982 | type, |
| 8983 | nextProps, |
| 8984 | renderLanes |
| 8985 | ) |
| 8986 | ); |
| 8987 | current = createFiberFromTypeAndProps( |
| 8988 | Component.type, |
| 8989 | null, |
| 8990 | nextProps, |
| 8991 | workInProgress, |
| 8992 | workInProgress.mode, |
| 8993 | renderLanes |
| 8994 | ); |
| 8995 | current.ref = workInProgress.ref; |
| 8996 | current.return = workInProgress; |
| 8997 | return (workInProgress.child = current); |
| 8998 | } |
| 8999 | type = current.child; |
| 9000 | if (!checkScheduledUpdateOrContext(current, renderLanes)) { |
| 9001 | var prevProps = type.memoizedProps; |
| 9002 | Component = Component.compare; |
| 9003 | Component = null !== Component ? Component : shallowEqual; |
| 9004 | if (Component(prevProps, nextProps) && current.ref === workInProgress.ref) |
| 9005 | return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes); |
| 9006 | } |
| 9007 | workInProgress.flags |= 1; |
| 9008 | current = createWorkInProgress(type, nextProps); |
| 9009 | current.ref = workInProgress.ref; |
| 9010 | current.return = workInProgress; |
| 9011 | return (workInProgress.child = current); |
| 9012 | } |
| 9013 | function updateSimpleMemoComponent( |
| 9014 | current, |
| 9015 | workInProgress, |
no test coverage detected
searching dependent graphs…