MCPcopy Index your code
hub / github.com/caseywebdev/react-list / warnInvalidHookAccess

Function warnInvalidHookAccess

docs/index.js:18772–18776  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18770 return new FiberNode(tag, pendingProps, key, mode);
18771 }
18772 function warnInvalidHookAccess() {
18773 console.error(
18774 "Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks"
18775 );
18776 }
18777 function warnInvalidContextAccess() {
18778 console.error(
18779 "Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…