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

Function warnInvalidHookAccess

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

Source from the content-addressed store, hash-verified

15826 };
15827
15828 var warnInvalidHookAccess = function () {
15829 error('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://fb.me/rules-of-hooks');
15830 };
15831
15832 HooksDispatcherOnMountInDEV = {
15833 readContext: function (context, observedBits) {

Callers 1

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected