(deps)
| 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 | { |
no test coverage detected
searching dependent graphs…