title: React: Trying to rewrite ComponentDidUpdate(prevProps) with react hook useEffect, but it fires when the app starts
body: <p>I'm using a componentDidUpdate function</p>
  
  <pre><code>componentDidUpdate(prevProps){
       if(prevProps.value !== this.props.users){ 
          ipcRenderer.send('userList:store',this.props.users);    
  }
  </code></pre>
  
  <p>to this</p>
  
  <pre><code>const users = useSelector(state =&gt; state.reddit.users)
  
      useEffect(() =&gt; {
         console.log('users changed')
         console.log({users})
      }, [users]);
  </code></pre>
  
  <p>but it  I get the message 'users changed' when I start the app. But the user state <strong>HAS NOT</strong> changed at all</p>