title: Is there a way to put requirements on hook dependencies?
body: <p>Currently, I am checking if the <code>input</code> useEffect() hook dependency is at least a certain length before calling <code>loadSearchData()</code> which is an async method that hits an API.</p>
  
  <pre class="lang-js prettyprint-override"><code>  useEffect(() =&gt; {
      if (input.length &gt;= MIN_CHAR_INPUT) {
        loadSearchData();
      }
    }, [input]);
  </code></pre>
  
  <p>Is there a way where I could move the input check to the <code>input</code> dependency param for useEffect()? Probably a case where I need to write a custom hook.</p>