Home / File/ todo.invalid.invalid-rules-of-hooks-c59788ef5676.js — react Source File

todo.invalid.invalid-rules-of-hooks-c59788ef5676.js — react Source File

Architecture documentation for todo.invalid.invalid-rules-of-hooks-c59788ef5676.js, a javascript file in the react codebase.

Entity Profile

Relationship Graph

Source Code

// @skip
// Passed but should have failed

// Currently invalid because it violates the convention and removes the "taint"
// from a hook. We *could* make it valid to avoid some false positives but let's
// ensure that we don't break the "renderItem" and "normalFunctionWithConditionalHook"
// cases which must remain invalid.
function normalFunctionWithHook() {
  useHookInsideNormalFunction();
}

Subdomains

Frequently Asked Questions

What does todo.invalid.invalid-rules-of-hooks-c59788ef5676.js do?
todo.invalid.invalid-rules-of-hooks-c59788ef5676.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in todo.invalid.invalid-rules-of-hooks-c59788ef5676.js?
todo.invalid.invalid-rules-of-hooks-c59788ef5676.js defines 1 function(s): normalFunctionWithHook.
Where is todo.invalid.invalid-rules-of-hooks-c59788ef5676.js in the architecture?
todo.invalid.invalid-rules-of-hooks-c59788ef5676.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/rules-of-hooks/todo.invalid.invalid-rules-of-hooks-c59788ef5676.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/rules-of-hooks).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free