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

Function patch

packages/react-refresh/src/__tests__/ReactFresh-test.js:72–78  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

70 }
71
72 async function patch(version) {
73 const Component = version();
74 await act(() => {
75 ReactFreshRuntime.performReactRefresh();
76 });
77 return Component;
78 }
79
80 function patchSync(version) {
81 const Component = version();

Callers 3

testJavaScriptFunction · 0.70
testTypeScriptFunction · 0.70
ReactFresh-test.jsFile · 0.70

Calls 1

actFunction · 0.50

Tested by

no test coverage detected