MCPcopy
hub / github.com/facebook/react / copyWithSet

Function copyWithSet

packages/react-reconciler/src/ReactFiberReconciler.js:702–708  ·  view source on GitHub ↗
(
    obj: Object | Array<any>,
    path: Array<string | number>,
    value: any,
  )

Source from the content-addressed store, hash-verified

700 };
701
702 const copyWithSet = (
703 obj: Object | Array<any>,
704 path: Array<string | number>,
705 value: any,
706 ): Object | Array<any> => {
707 return copyWithSetImpl(obj, path, 0, value);
708 };
709
710 const findHook = (fiber: Fiber, id: number) => {
711 // For now, the "id" of stateful hooks is just the stateful hook index.

Callers 1

Calls 1

copyWithSetImplFunction · 0.85

Tested by

no test coverage detected