MCPcopy Create free account
hub / github.com/microsoft/SandDance / throwInvalidHookError

Function throwInvalidHookError

docs/external/js/react-dom.development.js:14856–14862  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14854 }
14855
14856 function throwInvalidHookError() {
14857 {
14858 {
14859 throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem." );
14860 }
14861 }
14862 }
14863
14864 function areHookInputsEqual(nextDeps, prevDeps) {
14865 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected