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

Function nextHook

packages/react-debug-tools/src/ReactDebugHooks.js:153–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151let currentThenableState: null | Array<Thenable<mixed>> = null;
152
153function nextHook(): null | Hook {
154 const hook = currentHook;
155 if (hook !== null) {
156 currentHook = hook.next;
157 }
158 return hook;
159}
160
161function readContext<T>(context: ReactContext<T>): T {
162 if (currentFiber === null) {

Callers 15

useStateFunction · 0.85
useReducerFunction · 0.85
useRefFunction · 0.85
useCacheRefreshFunction · 0.85
useLayoutEffectFunction · 0.85
useInsertionEffectFunction · 0.85
useEffectFunction · 0.85
useImperativeHandleFunction · 0.85
useCallbackFunction · 0.85
useMemoFunction · 0.85
useSyncExternalStoreFunction · 0.85
useTransitionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected