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

Function checkDepsAreArrayDev

docs/external/js/react-dom.development.js:14815–14823  ·  view source on GitHub ↗
(deps)

Source from the content-addressed store, hash-verified

14813 }
14814
14815 function checkDepsAreArrayDev(deps) {
14816 {
14817 if (deps !== undefined && deps !== null && !Array.isArray(deps)) {
14818 // Verify deps, but only on mount to avoid extra checks.
14819 // It's unlikely their type would change as usually you define them inline.
14820 error('%s received a final argument that is not an array (instead, received `%s`). When ' + 'specified, the final argument must be an array.', currentHookNameInDev, typeof deps);
14821 }
14822 }
14823 }
14824
14825 function warnOnHookMismatchInDev(currentHookName) {
14826 {

Callers 1

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected