(deps)
| 16193 | } |
| 16194 | |
| 16195 | function checkDepsAreArrayDev(deps) { |
| 16196 | { |
| 16197 | if (deps !== undefined && deps !== null && !isArray(deps)) { |
| 16198 | // Verify deps, but only on mount to avoid extra checks. |
| 16199 | // It's unlikely their type would change as usually you define them inline. |
| 16200 | 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); |
| 16201 | } |
| 16202 | } |
| 16203 | } |
| 16204 | |
| 16205 | function warnOnHookMismatchInDev(currentHookName) { |
| 16206 | { |
no test coverage detected
searching dependent graphs…