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

Function getActionStateMatchingIndex

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

Source from the content-addressed store, hash-verified

292 return actionStateCounter;
293}
294export function getActionStateMatchingIndex(): number {
295 // This should be called immediately after every finishHooks call.
296 // Conceptually, it's part of the return value of finishHooks; it's only a
297 // separate function to avoid using an array tuple.
298 return actionStateMatchingIndex;
299}
300
301// Reset the internal hooks state if an error occurs while rendering a component
302export function resetHooksState(): void {

Callers 2

renderFunctionComponentFunction · 0.90
renderForwardRefFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected