MCPcopy Create free account
hub / github.com/facebook/react / getHookCallsSignature

Function getHookCallsSignature

packages/react-refresh/src/ReactFreshBabelPlugin.js:257–268  ·  view source on GitHub ↗
(functionNode)

Source from the content-addressed store, hash-verified

255 }
256
257 function getHookCallsSignature(functionNode) {
258 const fnHookCalls = hookCalls.get(functionNode);
259 if (fnHookCalls === undefined) {
260 return null;
261 }
262 return {
263 key: fnHookCalls.map(call => call.name + '{' + call.key + '}').join('\n'),
264 customHooks: fnHookCalls
265 .filter(call => !isBuiltinHook(call.name))
266 .map(call => t.cloneDeep(call.callee)),
267 };
268 }
269
270 const hasForceResetCommentByFile = new WeakMap();
271

Callers 1

exitFunction · 0.85

Calls 4

isBuiltinHookFunction · 0.85
joinMethod · 0.80
getMethod · 0.65
mapMethod · 0.65

Tested by

no test coverage detected