MCPcopy Index your code
hub / github.com/caseywebdev/react-list / updateSimpleMemoComponent

Function updateSimpleMemoComponent

docs/index.js:9013–9045  ·  view source on GitHub ↗
(
  current,
  workInProgress,
  Component,
  nextProps,
  renderLanes
)

Source from the content-addressed store, hash-verified

9011 return (workInProgress.child = current);
9012}
9013function updateSimpleMemoComponent(
9014 current,
9015 workInProgress,
9016 Component,
9017 nextProps,
9018 renderLanes
9019) {
9020 if (null !== current) {
9021 var prevProps = current.memoizedProps;
9022 if (
9023 shallowEqual(prevProps, nextProps) &&
9024 current.ref === workInProgress.ref
9025 )
9026 if (
9027 ((didReceiveUpdate = !1),
9028 (workInProgress.pendingProps = nextProps = prevProps),
9029 checkScheduledUpdateOrContext(current, renderLanes))
9030 )
9031 0 !== (current.flags & 131072) && (didReceiveUpdate = !0);
9032 else
9033 return (
9034 (workInProgress.lanes = current.lanes),
9035 bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
9036 );
9037 }
9038 return updateFunctionComponent(
9039 current,
9040 workInProgress,
9041 Component,
9042 nextProps,
9043 renderLanes
9044 );
9045}
9046function updateOffscreenComponent(current, workInProgress, renderLanes) {
9047 var nextProps = workInProgress.pendingProps,
9048 nextChildren = nextProps.children,

Callers 2

updateMemoComponentFunction · 0.85
beginWorkFunction · 0.85

Calls 4

shallowEqualFunction · 0.85
updateFunctionComponentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…