MCPcopy Create free account
hub / github.com/plotly/dash / checkDepsAreArrayDev

Function checkDepsAreArrayDev

dash/deps/react-dom@18.3.1.js:15376–15384  ·  view source on GitHub ↗
(deps)

Source from the content-addressed store, hash-verified

15374 }
15375
15376 function checkDepsAreArrayDev(deps) {
15377 {
15378 if (deps !== undefined && deps !== null && !isArray(deps)) {
15379 // Verify deps, but only on mount to avoid extra checks.
15380 // It's unlikely their type would change as usually you define them inline.
15381 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);
15382 }
15383 }
15384 }
15385
15386 function warnOnHookMismatchInDev(currentHookName) {
15387 {

Callers 1

Calls 2

isArrayFunction · 0.70
errorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…