MCPcopy Create free account
hub / github.com/clayrisser/create-react-renderer / commitUpdate

Function commitUpdate

phaseL/src/reconciler.ts:176–185  ·  view source on GitHub ↗
(
    instance: Instance,
    _updatePayload: any,
    _type: string,
    _oldProps: Props,
    newProps: Props
  )

Source from the content-addressed store, hash-verified

174 commitUpdate(
175 instance: Instance,
176 _type: Type,
177 _oldProps: Props,
178 newProps: Props,
179 _internalHandle: any,
180 ): void {
181 log.debug("commitUpdate");
182 // react-reconciler 0.33 removed prepareUpdate, so commitUpdate receives
183 // the old and new props directly instead of an update payload
184 return instance.commitUpdate(newProps);
185 },
186
187 commitMount(instance: Instance, _type: Type, _newProps: Props): void {
188 log.debug("commitMount");

Callers

nothing calls this directly

Calls 1

commitUpdateMethod · 0.65

Tested by

no test coverage detected