MCPcopy Index your code
hub / github.com/react/react / commitUpdate

Function commitUpdate

packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js:912–925  ·  view source on GitHub ↗
(
  domElement: Instance,
  type: string,
  oldProps: Props,
  newProps: Props,
  internalInstanceHandle: Object,
)

Source from the content-addressed store, hash-verified

910}
911
912export function commitUpdate(
913 domElement: Instance,
914 type: string,
915 oldProps: Props,
916 newProps: Props,
917 internalInstanceHandle: Object,
918): void {
919 // Diff and update the properties.
920 updateProperties(domElement, type, oldProps, newProps);
921
922 // Update the props handle so that we know which props are the ones with
923 // with current event handlers.
924 updateFiberProps(domElement, newProps);
925}
926
927export function resetTextContent(domElement: Instance): void {
928 setTextContent(domElement, '');

Callers

nothing calls this directly

Calls 2

updatePropertiesFunction · 0.90
updateFiberPropsFunction · 0.90

Tested by

no test coverage detected