title: How to use useFocusEffect hook
body: <p>As the docs <a href="https://reactnavigation.org/docs/en/next/use-focus-effect.html" rel="noreferrer">https://reactnavigation.org/docs/en/next/use-focus-effect.html</a>,</p>
  
  <p>"Sometimes we want to run side-effects when a screen is focused. A side effect may involve things like adding an event listener, fetching data, updating document title, etc."</p>
  
  <p>I'm trying to use <code>useFocusEffect</code> to fetch data everytime that the user go to that page.</p>
  
  <p>on my component I have a function which dispatch an action with redux to fetch the data:</p>
  
  <p><code>const fetchData = ()=&gt;{
        dispatch(companyJobsFetch(userDetails.companyId));
   };</code></p>
  
  <p>Actually I'm using <code>useEffect</code> hook to call <code>fetchData()</code>, but I'd like to fetch data everytime that the user go to that page and not only when rendered the first time.</p>
  
  <p>It's not clear from the documentation how to use <code>useFocusEffect</code> and I'm not having success on how to do it.</p>
  
  <p>Any help?</p>