MCPcopy Create free account
hub / github.com/caseywebdev/react-list / updateForwardRef

Function updateForwardRef

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

Source from the content-addressed store, hash-verified

8925 );
8926}
8927function updateForwardRef(
8928 current,
8929 workInProgress,
8930 Component,
8931 nextProps,
8932 renderLanes
8933) {
8934 Component = Component.render;
8935 var ref = workInProgress.ref;
8936 if ("ref" in nextProps) {
8937 var propsWithoutRef = {};
8938 for (var key in nextProps)
8939 "ref" !== key && (propsWithoutRef[key] = nextProps[key]);
8940 } else propsWithoutRef = nextProps;
8941 prepareToReadContext(workInProgress);
8942 nextProps = renderWithHooks(
8943 current,
8944 workInProgress,
8945 Component,
8946 propsWithoutRef,
8947 ref,
8948 renderLanes
8949 );
8950 key = checkDidRenderIdHook();
8951 if (null !== current && !didReceiveUpdate)
8952 return (
8953 bailoutHooks(current, workInProgress, renderLanes),
8954 bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)
8955 );
8956 isHydrating && key && pushMaterializedTreeId(workInProgress);
8957 workInProgress.flags |= 1;
8958 reconcileChildren(current, workInProgress, nextProps, renderLanes);
8959 return workInProgress.child;
8960}
8961function updateMemoComponent(
8962 current,
8963 workInProgress,

Callers 1

beginWorkFunction · 0.85

Calls 9

prepareToReadContextFunction · 0.85
renderWithHooksFunction · 0.85
checkDidRenderIdHookFunction · 0.85
bailoutHooksFunction · 0.85
pushMaterializedTreeIdFunction · 0.85
reconcileChildrenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…