<p dir="auto">Describe what you were doing when the bug occurred:</p>
<ol dir="auto">
<li>Started profiler recording</li>
<li>Expanded an accordion control</li>
<li>Collapsed same control</li>
<li>Stopped the recording</li>
<li>The error showed up</li>
</ol>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.11.0-39713716aa</p>
<p dir="auto">Call stack: at updateTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20505:53)<br>
at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20377:26)<br>
at ProfilingCache_ProfilingCache.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20951:11)<br>
at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35462:33)<br>
at Rh (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13245:7)<br>
at Ci (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13944:7)<br>
at uk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16725:86)<br>
at tk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16245:11)<br>
at qk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16237:23)<br>
at jk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16221:5)</p>
<p dir="auto">Component stack: at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35445:34)<br>
at div<br>
at div<br>
at div<br>
at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29121:3)<br>
at Profiler_Profiler (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37243:34)<br>
at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30035:5)<br>
at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30157:5)<br>
at div<br>
at div<br>
at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34264:3)<br>
at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25356:3)<br>
at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25963:3)<br>
at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30300:3)<br>
at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37639:3)</p>
<p dir="auto">With <code class="notranslate">eslint-plugin-react-hooks@4.0.0</code> I observe an unexpected warning (with a weird behaviour) on custom hook call-site.</p>
<h2 dir="auto">Steps To Reproduce</h2>
<ol dir="auto">
<li>yarn create react-app hooks-bug</li>
<li>cd hooks-bug</li>
<li>npm run eject</li>
<li>npm i eslint-plugin-react-hooks@4.0.0</li>
<li>place code from the examples below into <code class="notranslate">App.js</code></li>
<li>run <code class="notranslate">npx eslint src/App.js</code></li>
<li>check output for warnings mentioned below</li>
</ol>
<p dir="auto">Code example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function App(props) {
  useSomeEffect(props, {});
  return null;
}

function useSomeEffect() {}

export default App;"><pre class="notranslate"><code class="notranslate">function App(props) {
  useSomeEffect(props, {});
  return null;
}

function useSomeEffect() {}

export default App;
</code></pre></div>
<p dir="auto">npx eslint src/App.js</p>
<p dir="auto">./src/App.js<br>
2:3  warning  React Hook useSomeEffect has a missing dependency: 'props'. Either include it or remove the dependency array  react-hooks/exhaustive-deps</p>
<p dir="auto"><g-emoji class="g-emoji" alias="heavy_multiplication_x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2716.png">✖</g-emoji> 1 problem (0 errors, 1 warning)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function App(props) {
  useSomeEefect(props, {});
  return null;
}

function useSomeEefect() {}

export default App;
"><pre class="notranslate"><code class="notranslate">function App(props) {
  useSomeEefect(props, {});
  return null;
}

function useSomeEefect() {}

export default App;

</code></pre></div>
<p dir="auto">npx eslint src/App.js</p>
<p dir="auto">{no output}</p>
<h2 dir="auto">The current behavior</h2>
<ol dir="auto">
<li><code class="notranslate">react-hooks/exhaustive-deps</code> warning triggered on a custom hook call-site</li>
<li>change to the hook name (so it doesn't contain the <code class="notranslate">Effect</code> part) fixes the warning</li>
</ol>
<h2 dir="auto">The expected behavior</h2>
<ol dir="auto">
<li><code class="notranslate">react-hooks/exhaustive-deps</code> should only be triggered on a custom hook definition-site (at least as far as I understand it)</li>
<li>change to the hook name should not affect the warning</li>
</ol>