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

Function restoreContexts

packages/react-debug-tools/src/ReactDebugHooks.js:1252–1254  ·  view source on GitHub ↗
(contextMap: Map<ReactContext<any>, any>)

Source from the content-addressed store, hash-verified

1250}
1251
1252function restoreContexts(contextMap: Map<ReactContext<any>, any>) {
1253 contextMap.forEach((value, context) => (context._currentValue = value));
1254}
1255
1256function inspectHooksOfForwardRef<Props, Ref>(
1257 renderFunction: (Props, Ref) => React$Node,

Callers 1

inspectHooksOfFiberFunction · 0.85

Calls 1

forEachMethod · 0.65

Tested by

no test coverage detected