diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 6bde242ae0..74ca9bebb7 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -77c4ac2ce88736bbdfe0b29008b5df931c2beb1e +d947c2f1100dfd006fd91c6e9ed84d42ca7ab088 diff --git a/compiled/facebook-www/eslint-plugin-react-hooks.js b/compiled/facebook-www/eslint-plugin-react-hooks.js index cd72678619..e33402ab8d 100644 --- a/compiled/facebook-www/eslint-plugin-react-hooks.js +++ b/compiled/facebook-www/eslint-plugin-react-hooks.js @@ -1856,7 +1856,8 @@ var ExhaustiveDeps = { var callback = node.arguments[callbackIndex]; var reactiveHook = node.callee; var reactiveHookName = getNodeWithoutReactNamespace(reactiveHook).name; - var declaredDependenciesNode = node.arguments[callbackIndex + 1]; + var maybeNode = node.arguments[callbackIndex + 1]; + var declaredDependenciesNode = maybeNode && !(maybeNode.type === 'Identifier' && maybeNode.name === 'undefined') ? maybeNode : undefined; var isEffect = /Effect($|[^a-z])/g.test(reactiveHookName); // Check whether a callback is supplied. If there is no callback supplied // then the hook will not work and React will throw a TypeError. // So no need to check for dependency inclusion.