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