title: redux useSelector not returning length of state in store
body: <p>I am trying to get the state from my redux store and validating whether it is empty or not based on pressing a button however this isn't working as it's not returning the length using the useSelector hook. I'm new to redux and have a basic knowledge of React-Native so my approach is probably wrong I think, I could really use your help.</p>
  <p>Here is the code</p>
  <pre><code>import { useSelector } from 'react-redux'
  
  //Validation 
  const ingridients = useSelector(state =&gt; state.addMeal.ingridients);
  const method = useSelector(state =&gt; state.addMeal.method);
  const nameState = useSelector(state =&gt; state.addMeal.name);
  
  const validation = () =&gt; {
      ingridients.length === 0 &amp;&amp; method.length === 0 &amp;&amp; nameState.length === 0
          ?  Alert.alert(&quot;Fields are empty&quot;, &quot;Please fill out all fields&quot;)
          : handleSubmit
  
  }
  
  &lt;View&gt;
      &lt;TouchableOpacity onPress={validation}&gt;
          &lt;Text style={styles.createButton}&gt;Submit&lt;/Text&gt;
      &lt;/TouchableOpacity&gt;
  &lt;/View&gt;
  </code></pre>
  <p>I would really appreciate it from the bottom of my heart if someone could help me as to where I am going wrong with checking the length of my state in my redux store. Thank you in advance for your help!!!!!</p>