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

Function checkDidRenderIdHook

packages/react-server/src/ReactFizzHooks.js:280–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278}
279
280export function checkDidRenderIdHook(): boolean {
281 // This should be called immediately after every finishHooks call.
282 // Conceptually, it's part of the return value of finishHooks; it's only a
283 // separate function to avoid using an array tuple.
284 const didRenderIdHook = localIdCounter !== 0;
285 return didRenderIdHook;
286}
287
288export function getActionStateCount(): number {
289 // This should be called immediately after every finishHooks call.

Callers 5

renderFunctionComponentFunction · 0.90
renderForwardRefFunction · 0.90
updateForwardRefFunction · 0.85
updateFunctionComponentFunction · 0.85
replayFunctionComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected