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

Function isReactWrapper

packages/react-debug-tools/src/ReactDebugHooks.js:896–903  ·  view source on GitHub ↗
(functionName: void | string, wrapperName: string)

Source from the content-addressed store, hash-verified

894}
895
896function isReactWrapper(functionName: void | string, wrapperName: string) {
897 const hookName = parseHookName(functionName);
898 if (wrapperName === 'HostTransitionStatus') {
899 return hookName === wrapperName || hookName === 'FormStatus';
900 }
901
902 return hookName === wrapperName;
903}
904
905function findPrimitiveIndex(hookStack: ParsedStackFrame[], hook: HookLogEntry) {
906 const stackCache = getPrimitiveStackCache();

Callers 1

findPrimitiveIndexFunction · 0.85

Calls 1

parseHookNameFunction · 0.85

Tested by

no test coverage detected